common

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 6 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 (*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