Documentation ¶
Overview ¶
Package aws is a generated GoMock package.
Index ¶
- Constants
- type Cloud
- type CloudConfig
- type MockCloud
- func (m *MockCloud) Config() CloudConfig
- func (m *MockCloud) DefaultTags() map[string]*string
- func (m *MockCloud) DefaultTagsMergedWith(arg0 map[string]*string) map[string]*string
- func (m *MockCloud) EXPECT() *MockCloudMockRecorder
- func (m *MockCloud) IsArnManaged(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockCloud) Lattice() services.Lattice
- func (m *MockCloud) Tagging() services.Tagging
- func (m *MockCloud) TryOwn(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockCloud) TryOwnFromTags(arg0 context.Context, arg1 string, arg2 map[string]*string) (bool, error)
- type MockCloudMockRecorder
- func (mr *MockCloudMockRecorder) Config() *gomock.Call
- func (mr *MockCloudMockRecorder) DefaultTags() *gomock.Call
- func (mr *MockCloudMockRecorder) DefaultTagsMergedWith(arg0 interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) IsArnManaged(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) Lattice() *gomock.Call
- func (mr *MockCloudMockRecorder) Tagging() *gomock.Call
- func (mr *MockCloudMockRecorder) TryOwn(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCloudMockRecorder) TryOwnFromTags(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
const ( TagBase = "application-networking.k8s.aws/" TagManagedBy = TagBase + "ManagedBy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud interface { Config() CloudConfig Lattice() services.Lattice Tagging() services.Tagging // creates lattice tags with default values populated DefaultTags() services.Tags // creates lattice tags with default values populated and merges them with provided tags DefaultTagsMergedWith(services.Tags) services.Tags // check if managedBy tag set for lattice resource IsArnManaged(ctx context.Context, arn string) (bool, error) // check ownership and acquire if it is not owned by anyone. TryOwn(ctx context.Context, arn string) (bool, error) TryOwnFromTags(ctx context.Context, arn string, tags services.Tags) (bool, error) }
func NewCloud ¶
func NewCloud(log gwlog.Logger, cfg CloudConfig) (Cloud, error)
NewCloud constructs new Cloud implementation.
func NewDefaultCloud ¶ added in v0.0.16
func NewDefaultCloud(lattice services.Lattice, cfg CloudConfig) Cloud
Used in testing and mocks
func NewDefaultCloudWithTagging ¶ added in v1.0.0
type CloudConfig ¶ added in v0.0.16
type MockCloud ¶
type MockCloud struct {
// contains filtered or unexported fields
}
MockCloud is a mock of Cloud interface.
func NewMockCloud ¶
func NewMockCloud(ctrl *gomock.Controller) *MockCloud
NewMockCloud creates a new mock instance.
func (*MockCloud) Config ¶ added in v0.0.16
func (m *MockCloud) Config() CloudConfig
Config mocks base method.
func (*MockCloud) DefaultTags ¶ added in v0.0.16
DefaultTags mocks base method.
func (*MockCloud) DefaultTagsMergedWith ¶ added in v0.0.18
DefaultTagsMergedWith mocks base method.
func (*MockCloud) EXPECT ¶
func (m *MockCloud) EXPECT() *MockCloudMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCloud) IsArnManaged ¶ added in v0.0.16
IsArnManaged mocks base method.
type MockCloudMockRecorder ¶
type MockCloudMockRecorder struct {
// contains filtered or unexported fields
}
MockCloudMockRecorder is the mock recorder for MockCloud.
func (*MockCloudMockRecorder) Config ¶ added in v0.0.16
func (mr *MockCloudMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockCloudMockRecorder) DefaultTags ¶ added in v0.0.16
func (mr *MockCloudMockRecorder) DefaultTags() *gomock.Call
DefaultTags indicates an expected call of DefaultTags.
func (*MockCloudMockRecorder) DefaultTagsMergedWith ¶ added in v0.0.18
func (mr *MockCloudMockRecorder) DefaultTagsMergedWith(arg0 interface{}) *gomock.Call
DefaultTagsMergedWith indicates an expected call of DefaultTagsMergedWith.
func (*MockCloudMockRecorder) IsArnManaged ¶ added in v0.0.16
func (mr *MockCloudMockRecorder) IsArnManaged(arg0, arg1 interface{}) *gomock.Call
IsArnManaged indicates an expected call of IsArnManaged.
func (*MockCloudMockRecorder) Lattice ¶
func (mr *MockCloudMockRecorder) Lattice() *gomock.Call
Lattice indicates an expected call of Lattice.
func (*MockCloudMockRecorder) Tagging ¶ added in v1.0.0
func (mr *MockCloudMockRecorder) Tagging() *gomock.Call
Tagging indicates an expected call of Tagging.
func (*MockCloudMockRecorder) TryOwn ¶ added in v1.0.0
func (mr *MockCloudMockRecorder) TryOwn(arg0, arg1 interface{}) *gomock.Call
TryOwn indicates an expected call of TryOwn.
func (*MockCloudMockRecorder) TryOwnFromTags ¶ added in v1.0.0
func (mr *MockCloudMockRecorder) TryOwnFromTags(arg0, arg1, arg2 interface{}) *gomock.Call
TryOwnFromTags indicates an expected call of TryOwnFromTags.