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 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 NewMockSupplier ¶
func NewMockSupplier(t mockConstructorTestingTNewMockSupplier) *MockSupplier
NewMockSupplier creates a new instance of MockSupplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 DiscriminantFunc func(*Resource, *Resource) bool }
func (*Schema) IsComputedField ¶
func (*Schema) IsJsonStringField ¶
type SerializableResource ¶
type SerializableResource struct { Id string `json:"id"` Type string `json:"type"` ReadableAttributes map[string]string `json:"human_readable_attributes,omitempty"` Source *SerializableSource `json:"source,omitempty"` }
func NewSerializableResource ¶
func NewSerializableResource(res *Resource) *SerializableResource
type SerializableSource ¶
type StoppableSupplier ¶
type StoppableSupplier interface { Supplier Stop() }
type Supplier ¶
Supplier supply the list of resource.Resource, it's the main interface 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 ¶
Click to show internal directories.
Click to hide internal directories.