Documentation ¶
Index ¶
- func IsResourceTypeSupported(ty string) bool
- type AttributeSchema
- type Attributes
- func (a *Attributes) Copy() *Attributes
- func (a *Attributes) DeleteIfDefault(path string)
- func (a *Attributes) Get(path string) (interface{}, bool)
- func (a *Attributes) GetBool(path string) *bool
- func (a *Attributes) GetFloat64(path string) *float64
- func (a *Attributes) GetInt(path string) *int
- func (a *Attributes) GetMap(path string) map[string]interface{}
- func (a *Attributes) GetSlice(path string) []interface{}
- func (a *Attributes) GetString(path string) *string
- func (a *Attributes) SafeDelete(path []string)
- func (a *Attributes) SafeSet(path []string, value interface{}) error
- func (a *Attributes) SanitizeDefaults()
- type Deserializer
- type Flags
- type MockSupplier
- type NormalizedResource
- type Resource
- type ResourceFactory
- type ResourceType
- type ResourceTypeMeta
- type Schema
- type SchemaRepository
- func (r *SchemaRepository) GetSchema(resourceType string) (*Schema, bool)
- func (r *SchemaRepository) Init(providerName, providerVersion string, schema map[string]providers.Schema) error
- func (r *SchemaRepository) SetDiscriminantFunc(typ string, fn func(self, res *Resource) bool)
- func (r SchemaRepository) SetFlags(typ string, flags ...Flags)
- func (r *SchemaRepository) SetHumanReadableAttributesFunc(typ string, humanReadableAttributesFunc func(res *Resource) map[string]string)
- func (r *SchemaRepository) SetNormalizeFunc(typ string, normalizeFunc func(res *Resource))
- func (r *SchemaRepository) SetResolveReadAttributesFunc(typ string, resolveReadAttributesFunc func(res *Resource) map[string]string)
- func (r *SchemaRepository) UpdateSchema(typ string, schemasMutators map[string]func(attributeSchema *AttributeSchema))
- type SchemaRepositoryInterface
- type SerializableResource
- type SerializableSource
- type Source
- type StoppableSupplier
- type Supplier
- type TerraformStateSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsResourceTypeSupported ¶
Types ¶
type AttributeSchema ¶
type AttributeSchema struct { ConfigSchema configschema.Attribute JsonString bool }
type Attributes ¶
type Attributes map[string]interface{}
func (*Attributes) Copy ¶
func (a *Attributes) Copy() *Attributes
func (*Attributes) DeleteIfDefault ¶
func (a *Attributes) DeleteIfDefault(path string)
func (*Attributes) Get ¶
func (a *Attributes) Get(path string) (interface{}, bool)
func (*Attributes) GetBool ¶
func (a *Attributes) GetBool(path string) *bool
func (*Attributes) GetFloat64 ¶
func (a *Attributes) GetFloat64(path string) *float64
func (*Attributes) GetInt ¶
func (a *Attributes) GetInt(path string) *int
func (*Attributes) GetMap ¶
func (a *Attributes) GetMap(path string) map[string]interface{}
func (*Attributes) GetSlice ¶
func (a *Attributes) GetSlice(path string) []interface{}
func (*Attributes) GetString ¶
func (a *Attributes) GetString(path string) *string
func (*Attributes) SafeDelete ¶
func (a *Attributes) SafeDelete(path []string)
func (*Attributes) SafeSet ¶
func (a *Attributes) SafeSet(path []string, value interface{}) error
func (*Attributes) SanitizeDefaults ¶
func (a *Attributes) SanitizeDefaults()
type Deserializer ¶
type Deserializer struct {
// contains filtered or unexported fields
}
func NewDeserializer ¶
func NewDeserializer(factory ResourceFactory) *Deserializer
func (*Deserializer) Deserialize ¶
func (*Deserializer) DeserializeOne ¶
type MockSupplier ¶
MockSupplier is an autogenerated mock type for the Supplier type
func (*MockSupplier) Resources ¶
func (_m *MockSupplier) Resources() ([]*Resource, error)
Resources provides a mock function with given fields:
type NormalizedResource ¶
type Resource ¶
type Resource struct { Id string Type string Attrs *Attributes Sch *Schema `json:"-" diff:"-"` Source Source `json:"-"` }
func (*Resource) Attributes ¶
func (r *Resource) Attributes() *Attributes
func (*Resource) ResourceId ¶
func (*Resource) ResourceType ¶
func (*Resource) SourceString ¶
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 Schema ¶
type Schema struct { ProviderVersion *version.Version Flags Flags SchemaVersion int64 Attributes map[string]AttributeSchema NormalizeFunc func(res *Resource) HumanReadableAttributesFunc func(res *Resource) map[string]string ResolveReadAttributesFunc func(res *Resource) map[string]string DiscriminantFunc func(*Resource, *Resource) bool }
func (*Schema) IsComputedField ¶
func (*Schema) IsJsonStringField ¶
type SchemaRepository ¶
type SchemaRepository struct { ProviderName string ProviderVersion *version.Version // contains filtered or unexported fields }
func NewSchemaRepository ¶
func NewSchemaRepository() *SchemaRepository
func (*SchemaRepository) GetSchema ¶
func (r *SchemaRepository) GetSchema(resourceType string) (*Schema, bool)
func (*SchemaRepository) SetDiscriminantFunc ¶
func (r *SchemaRepository) SetDiscriminantFunc(typ string, fn func(self, res *Resource) bool)
func (SchemaRepository) SetFlags ¶
func (r SchemaRepository) SetFlags(typ string, flags ...Flags)
func (*SchemaRepository) SetHumanReadableAttributesFunc ¶
func (r *SchemaRepository) SetHumanReadableAttributesFunc(typ string, humanReadableAttributesFunc func(res *Resource) map[string]string)
func (*SchemaRepository) SetNormalizeFunc ¶
func (r *SchemaRepository) SetNormalizeFunc(typ string, normalizeFunc func(res *Resource))
func (*SchemaRepository) SetResolveReadAttributesFunc ¶
func (r *SchemaRepository) SetResolveReadAttributesFunc(typ string, resolveReadAttributesFunc func(res *Resource) map[string]string)
func (*SchemaRepository) UpdateSchema ¶
func (r *SchemaRepository) UpdateSchema(typ string, schemasMutators map[string]func(attributeSchema *AttributeSchema))
type SchemaRepositoryInterface ¶
type SchemaRepositoryInterface interface { GetSchema(resourceType string) (*Schema, bool) SetFlags(typ string, flags ...Flags) UpdateSchema(typ string, schemasMutators map[string]func(attributeSchema *AttributeSchema)) SetNormalizeFunc(typ string, normalizeFunc func(res *Resource)) SetHumanReadableAttributesFunc(typ string, humanReadableAttributesFunc func(res *Resource) map[string]string) SetResolveReadAttributesFunc(typ string, resolveReadAttributesFunc func(res *Resource) map[string]string) SetDiscriminantFunc(string, func(*Resource, *Resource) bool) }
type SerializableResource ¶
type SerializableResource struct { Id string `json:"id"` Type string `json:"type"` Source *SerializableSource `json:"source,omitempty"` }
func NewSerializableResource ¶
func NewSerializableResource(res *Resource) *SerializableResource
type SerializableSource ¶
type StoppableSupplier ¶
type StoppableSupplier interface { Supplier Stop() }
type Supplier ¶
Resource Supplier supply the list of resource.Resource, its the front to retrieve remote resources
type TerraformStateSource ¶
func NewTerraformStateSource ¶
func NewTerraformStateSource(state, module, name string) *TerraformStateSource
func (*TerraformStateSource) InternalName ¶
func (s *TerraformStateSource) InternalName() string
func (*TerraformStateSource) Namespace ¶
func (s *TerraformStateSource) Namespace() string
func (*TerraformStateSource) Source ¶
func (s *TerraformStateSource) Source() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE
|
GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE GENERATED, DO NOT EDIT THIS FILE |
Click to show internal directories.
Click to hide internal directories.