common

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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 DetailsFetcher

type DetailsFetcher interface {
	ReadDetails(*resource.Resource) (*resource.Resource, error)
}

type Enumerator

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

type GenericDetailsFetcher

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

func NewGenericDetailsFetcher

func NewGenericDetailsFetcher(resType resource.ResourceType, provider terraform.ResourceReader, deserializer *resource.Deserializer) *GenericDetailsFetcher

func (*GenericDetailsFetcher) ReadDetails

func (f *GenericDetailsFetcher) ReadDetails(res *resource.Resource) (*resource.Resource, error)

type MockEnumerator

type MockEnumerator struct {
	mock.Mock
}

MockEnumerator is an autogenerated mock type for the Enumerator type

func NewMockEnumerator

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) AddDetailsFetcher

func (r *RemoteLibrary) AddDetailsFetcher(ty resource.ResourceType, detailsFetcher DetailsFetcher)

func (*RemoteLibrary) AddEnumerator

func (r *RemoteLibrary) AddEnumerator(enumerator Enumerator)

func (*RemoteLibrary) Enumerators

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

func (*RemoteLibrary) GetDetailsFetcher

func (r *RemoteLibrary) GetDetailsFetcher(ty resource.ResourceType) DetailsFetcher

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