aws

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package aws is a generated GoMock package.

Index

Constants

View Source
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

func NewDefaultCloudWithTagging(lattice services.Lattice, tagging services.Tagging, cfg CloudConfig) Cloud

type CloudConfig added in v0.0.16

type CloudConfig struct {
	VpcId       string
	AccountId   string
	Region      string
	ClusterName string
}

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

func (m *MockCloud) DefaultTags() map[string]*string

DefaultTags mocks base method.

func (*MockCloud) DefaultTagsMergedWith added in v0.0.18

func (m *MockCloud) DefaultTagsMergedWith(arg0 map[string]*string) map[string]*string

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

func (m *MockCloud) IsArnManaged(arg0 context.Context, arg1 string) (bool, error)

IsArnManaged mocks base method.

func (*MockCloud) Lattice

func (m *MockCloud) Lattice() services.Lattice

Lattice mocks base method.

func (*MockCloud) Tagging added in v1.0.0

func (m *MockCloud) Tagging() services.Tagging

Tagging mocks base method.

func (*MockCloud) TryOwn added in v1.0.0

func (m *MockCloud) TryOwn(arg0 context.Context, arg1 string) (bool, error)

TryOwn mocks base method.

func (*MockCloud) TryOwnFromTags added in v1.0.0

func (m *MockCloud) TryOwnFromTags(arg0 context.Context, arg1 string, arg2 map[string]*string) (bool, error)

TryOwnFromTags 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.

Directories

Path Synopsis
Package services is a generated GoMock package.
Package services is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL