resources

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredValDefault = iota
	CredValIAM
	CredValNone
)

Variables

This section is empty.

Functions

func VisitResource added in v1.35.0

func VisitResource(res *schema.Resource)

func VisitSchema added in v1.35.0

func VisitSchema(sch *schema.Schema)

func VisitSchemaMap added in v1.35.0

func VisitSchemaMap(schemata map[string]*schema.Schema) map[string]*schema.Schema

Types

type Attributes added in v1.18.0

type Attributes map[string]string

func NewAttributes added in v1.18.0

func NewAttributes(m map[string]string) Attributes

func (Attributes) Keys added in v1.18.0

func (attributes Attributes) Keys() []string

func (Attributes) MatchingKeys added in v1.18.0

func (attributes Attributes) MatchingKeys(key string) []string

func (Attributes) Siblings added in v1.18.0

func (attributes Attributes) Siblings(key string) Siblings

type Computer added in v1.31.0

type Computer interface {
	IsComputer() bool
}

type Deprecated added in v1.36.0

type Deprecated interface {
	Deprecated() string
}

type Generic added in v1.18.0

type Generic struct {
	Type                 export.ResourceType
	Descriptor           export.ResourceDescriptor
	CredentialValidation int
}

func NewGeneric added in v1.18.0

func NewGeneric(resourceType export.ResourceType, credVal ...int) *Generic

func (*Generic) Create added in v1.18.0

func (me *Generic) Create(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics

func (*Generic) Delete added in v1.18.0

func (me *Generic) Delete(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics

func (*Generic) Read added in v1.18.0

func (*Generic) ReadForSettings added in v1.31.0

func (me *Generic) ReadForSettings(ctx context.Context, d *schema.ResourceData, m any, sttngs settings.Settings) diag.Diagnostics

func (*Generic) Resource added in v1.18.0

func (me *Generic) Resource() *schema.Resource

func (*Generic) Service added in v1.18.0

func (me *Generic) Service(m any) settings.CRUDService[settings.Settings]

func (*Generic) Settings added in v1.18.0

func (me *Generic) Settings() settings.Settings

func (*Generic) Update added in v1.18.0

func (me *Generic) Update(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics

type MarshalPreparer added in v1.18.0

type MarshalPreparer interface {
	PrepareMarshalHCL(hcl.Decoder) error
}

type Sibling added in v1.18.0

type Sibling struct {
	Key   string
	Value string
}

func (Sibling) Equals added in v1.18.0

func (sibling Sibling) Equals(other Sibling) bool

func (Sibling) String added in v1.18.0

func (sibling Sibling) String() string

type Siblings added in v1.18.0

type Siblings []Sibling

func (Siblings) Contains added in v1.18.0

func (siblings Siblings) Contains(others ...Sibling) bool

func (Siblings) String added in v1.18.0

func (siblings Siblings) String() string

Directories

Path Synopsis
permissions

Jump to

Keyboard shortcuts

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