Documentation ¶
Index ¶
- func DataSourceSchemaWrap(s map[string]*schema.Schema) map[string]*schema.Schema
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func IsValidName(i interface{}, k string) ([]string, []error)
- func NamespacedSchemaWrap(s map[string]*schema.Schema, system bool)
- func NewObjectMeta(namespace, name string) metav1.ObjectMeta
- func NonNamespacedSchemaWrap(s map[string]*schema.Schema)
- func ResourceConstruct(d *schema.ResourceData, c Constructor) (interface{}, error)
- func ResourceStatesSet(d *schema.ResourceData, getter *importer.StateGetter) error
- type Constructor
- type Processor
- type Processors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceSchemaWrap ¶
func IsValidName ¶
func NewObjectMeta ¶
func NewObjectMeta(namespace, name string) metav1.ObjectMeta
func NonNamespacedSchemaWrap ¶
func ResourceConstruct ¶
func ResourceConstruct(d *schema.ResourceData, c Constructor) (interface{}, error)
func ResourceStatesSet ¶
func ResourceStatesSet(d *schema.ResourceData, getter *importer.StateGetter) error
Types ¶
type Constructor ¶
type Constructor interface { Setup() Processors Result() (interface{}, error) Validate() error }
type Processors ¶
type Processors []Processor
func NewProcessors ¶
func NewProcessors() Processors
func (Processors) Bool ¶
func (p Processors) Bool(key string, dst *bool, required bool) Processors
func (Processors) Description ¶
func (p Processors) Description(annotations *map[string]string) Processors
func (Processors) String ¶
func (p Processors) String(key string, dst *string, required bool) Processors
func (Processors) Tags ¶
func (p Processors) Tags(labels *map[string]string) Processors
Click to show internal directories.
Click to hide internal directories.