common

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

View Source
const (
	RemoteAWSTerraform    = "aws+tf"
	RemoteGithubTerraform = "github+tf"
	RemoteGoogleTerraform = "gcp+tf"
	RemoteAzureTerraform  = "azure+tf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Enumerator

type Enumerator interface {
	SupportedType() resource.ResourceType
	Enumerate() ([]*resource.Resource, error)
}

type MockEnumerator

type MockEnumerator struct {
	mock.Mock
}

MockEnumerator is an autogenerated mock type for the Enumerator type

func NewMockEnumerator added in v0.39.0

func NewMockEnumerator(t mockConstructorTestingTNewMockEnumerator) *MockEnumerator

NewMockEnumerator creates a new instance of MockEnumerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockEnumerator) Enumerate

func (_m *MockEnumerator) Enumerate() ([]*resource.Resource, error)

Enumerate provides a mock function with given fields:

func (*MockEnumerator) SupportedType

func (_m *MockEnumerator) SupportedType() resource.ResourceType

SupportedType provides a mock function with given fields:

type RemoteLibrary

type RemoteLibrary struct {
	// contains filtered or unexported fields
}

func NewRemoteLibrary

func NewRemoteLibrary() *RemoteLibrary

func (*RemoteLibrary) AddEnumerator

func (r *RemoteLibrary) AddEnumerator(enumerator Enumerator)

func (*RemoteLibrary) Enumerators

func (r *RemoteLibrary) Enumerators() []Enumerator

type RemoteParameter

type RemoteParameter string

func (RemoteParameter) GetProviderAddress

func (p RemoteParameter) GetProviderAddress() *lock.ProviderAddress

Jump to

Keyboard shortcuts

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