s3api.go ×8

Frontier kind: Code frontier

unlabeled · c_86e2dce55dfe

34 tests · 1870 LOC · 81 files · introduces 0 tests · 38 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges38 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
259 ranges1870 lines · 81 files · Browse complete extent
All tests (intent)
34 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 38 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/archiver/s3store/mocks/s3api.go 36 introduced LOC · 8 ranges

Open complete file

31
32 // NewMockS3API creates a new mock instance.
33 > func NewMockS3API(ctrl *gomock.Controller) *MockS3API { s3api.go
34 > mock := &MockS3API{ctrl: ctrl}
35 > mock.recorder = &MockS3APIMockRecorder{mock}
36 > return mock
37 > }
38
39 // EXPECT returns an object that allows the caller to indicate expected use.
40 > func (m *MockS3API) EXPECT() *MockS3APIMockRecorder { s3api.go
41 > return m.recorder
42 > }
43
44 // GetObject mocks base method.
56
57 // GetObject indicates an expected call of GetObject.
58 > func (mr *MockS3APIMockRecorder) GetObject(ctx, params any, optFns ...any) *gomock.Call { s3api.go
59 > mr.mock.ctrl.T.Helper()
60 > varargs := append([]any{ctx, params}, optFns...)
61 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObject", reflect.TypeOf((*MockS3API)(nil).GetObject), varargs...)
62 > }
63
64 // HeadBucket mocks base method.
96
97 // HeadObject indicates an expected call of HeadObject.
98 > func (mr *MockS3APIMockRecorder) HeadObject(ctx, params any, optFns ...any) *gomock.Call { s3api.go
99 > mr.mock.ctrl.T.Helper()
100 > varargs := append([]any{ctx, params}, optFns...)
101 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadObject", reflect.TypeOf((*MockS3API)(nil).HeadObject), varargs...)
102 > }
103
104 // ListObjectsV2 mocks base method.
116
117 // ListObjectsV2 indicates an expected call of ListObjectsV2.
118 > func (mr *MockS3APIMockRecorder) ListObjectsV2(ctx, params any, optFns ...any) *gomock.Call { s3api.go
119 > mr.mock.ctrl.T.Helper()
120 > varargs := append([]any{ctx, params}, optFns...)
121 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListObjectsV2", reflect.TypeOf((*MockS3API)(nil).ListObjectsV2), varargs...)
122 > }
123
124 // PutObject mocks base method.
125 > func (m *MockS3API) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error) { s3api.go
126 > m.ctrl.T.Helper()
127 > varargs := []any{ctx, params}
128 > for _, a := range optFns {
129 varargs = append(varargs, a)
130 }
131 > ret := m.ctrl.Call(m, "PutObject", varargs...) s3api.go
132 > ret0, _ := ret[0].(*s3.PutObjectOutput)
133 > ret1, _ := ret[1].(error)
134 > return ret0, ret1
135 }
136
137 // PutObject indicates an expected call of PutObject.
138 > func (mr *MockS3APIMockRecorder) PutObject(ctx, params any, optFns ...any) *gomock.Call { s3api.go
139 > mr.mock.ctrl.T.Helper()
140 > varargs := append([]any{ctx, params}, optFns...)
141 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutObject", reflect.TypeOf((*MockS3API)(nil).PutObject), varargs...)
142 > }
go.temporal.io/server/common/archiver/s3store/util.go 2 introduced LOC · 1 range

Open complete file

66
67 // Only validates the scheme and buckets are passed
68 > func SoftValidateURI(URI archiver.URI) error { util.go
69 > if URI.Scheme() != URIScheme {
70 return archiver.ErrURISchemeMismatch
71 }