Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedTypes ¶ added in v0.37.0
func GetSupportedTypes() []string
func IsResourceTypeSupported ¶
Types ¶
type Deserializer ¶
type Deserializer struct {
// contains filtered or unexported fields
}
func NewDeserializer ¶
func NewDeserializer(factory resource.ResourceFactory) *Deserializer
func (*Deserializer) Deserialize ¶
func (*Deserializer) DeserializeOne ¶
type DriftctlResourceFactory ¶ added in v0.37.0
type DriftctlResourceFactory struct {
// contains filtered or unexported fields
}
func NewDriftctlResourceFactory ¶ added in v0.37.0
func NewDriftctlResourceFactory(resourceSchemaRepository SchemaRepositoryInterface) *DriftctlResourceFactory
func (*DriftctlResourceFactory) CreateAbstractResource ¶ added in v0.37.0
func (r *DriftctlResourceFactory) CreateAbstractResource(ty, id string, data map[string]interface{}) *resource.Resource
type IaCSupplier ¶ added in v0.20.0
IaCSupplier supply the list of resource.Resource, it's the main interface to retrieve state resources
type MockIaCSupplier ¶ added in v0.20.0
MockIaCSupplier is an autogenerated mock type for the IaCSupplier type
func NewMockIaCSupplier ¶ added in v0.39.0
func NewMockIaCSupplier(t mockConstructorTestingTNewMockIaCSupplier) *MockIaCSupplier
NewMockIaCSupplier creates a new instance of MockIaCSupplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockIaCSupplier) Resources ¶ added in v0.20.0
func (_m *MockIaCSupplier) Resources() ([]*enumerationresource.Resource, error)
Resources provides a mock function with given fields:
func (*MockIaCSupplier) SourceCount ¶ added in v0.20.0
func (_m *MockIaCSupplier) SourceCount() uint
SourceCount provides a mock function with given fields:
type MockResourceFactory ¶ added in v0.37.0
MockResourceFactory is an autogenerated mock type for the ResourceFactory type
func NewMockResourceFactory ¶ added in v0.39.0
func NewMockResourceFactory(t mockConstructorTestingTNewMockResourceFactory) *MockResourceFactory
NewMockResourceFactory creates a new instance of MockResourceFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockResourceFactory) CreateAbstractResource ¶ added in v0.37.0
func (_m *MockResourceFactory) CreateAbstractResource(ty string, id string, data map[string]interface{}) *enumerationresource.Resource
CreateAbstractResource provides a mock function with given fields: ty, id, data
type MockSupplier ¶
MockSupplier is an autogenerated mock type for the Supplier type
type ResourceFactory ¶
type ResourceType ¶
type ResourceType string
func (ResourceType) String ¶
func (ty ResourceType) String() string
type ResourceTypeMeta ¶
type ResourceTypeMeta struct {
// contains filtered or unexported fields
}
func GetMeta ¶
func GetMeta(ty ResourceType) ResourceTypeMeta
func (ResourceTypeMeta) GetChildrenTypes ¶
func (ty ResourceTypeMeta) GetChildrenTypes() []ResourceType
type SchemaRepositoryInterface ¶
type SchemaRepositoryInterface interface { GetSchema(resourceType string) (*resource.Schema, bool) SetFlags(typ string, flags ...resource.Flags) UpdateSchema(typ string, schemasMutators map[string]func(attributeSchema *resource.AttributeSchema)) SetNormalizeFunc(typ string, normalizeFunc func(res *resource.Resource)) SetHumanReadableAttributesFunc(typ string, humanReadableAttributesFunc func(res *resource.Resource) map[string]string) SetDiscriminantFunc(string, func(*resource.Resource, *resource.Resource) bool) }