schemas

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaRepository

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

func NewSchemaRepository

func NewSchemaRepository() *SchemaRepository

func (*SchemaRepository) GetSchema

func (r *SchemaRepository) GetSchema(resourceType string) (*resource.Schema, bool)

func (*SchemaRepository) Init

func (r *SchemaRepository) Init(providerName, providerVersion string, schema map[string]providers.Schema) error

func (*SchemaRepository) SetDiscriminantFunc

func (r *SchemaRepository) SetDiscriminantFunc(typ string, fn func(self, res *resource.Resource) bool)

func (SchemaRepository) SetFlags

func (r SchemaRepository) SetFlags(typ string, flags ...resource.Flags)

func (*SchemaRepository) SetHumanReadableAttributesFunc

func (r *SchemaRepository) SetHumanReadableAttributesFunc(typ string, humanReadableAttributesFunc func(res *resource.Resource) map[string]string)

func (*SchemaRepository) SetNormalizeFunc

func (r *SchemaRepository) SetNormalizeFunc(typ string, normalizeFunc func(res *resource.Resource))

func (*SchemaRepository) UpdateSchema

func (r *SchemaRepository) UpdateSchema(typ string, schemasMutators map[string]func(attributeSchema *resource.AttributeSchema))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL