Documentation ¶
Index ¶
- func NewImplementation(kind string) contracts.IDefinition
- func ReadFile(filePath string) ([]byte, error)
- type Definition
- func (definition *Definition) Apply(format contracts.Format, obj contracts.ObjectInterface, kind string) (contracts.ObjectInterface, error)
- func (definition *Definition) Changed(format contracts.Format, obj contracts.ObjectInterface) (bool, error)
- func (definition *Definition) Delete(format contracts.Format, obj contracts.ObjectInterface, kind string) (contracts.IDefinition, error)
- func (definition *Definition) FromJson(bytes []byte) error
- func (definition *Definition) GetKind() string
- func (definition *Definition) GetRuntime() *commonv1.Runtime
- func (definition *Definition) ResolveReferences(obj contracts.ObjectInterface) ([]contracts.IDefinition, error)
- func (definition *Definition) SetRuntime(runtime *commonv1.Runtime)
- func (definition *Definition) ToJson() ([]byte, error)
- func (definition *Definition) ToJsonForUser() ([]byte, error)
- func (definition *Definition) ToJsonString() (string, error)
- func (definition *Definition) ToJsonWithKind() ([]byte, error)
- func (definition *Definition) Validate() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImplementation ¶ added in v0.0.114
func NewImplementation(kind string) contracts.IDefinition
Types ¶
type Definition ¶ added in v0.0.114
type Definition struct {
Definition contracts.IDefinition
}
func New ¶ added in v0.0.114
func New(kind string) *Definition
func (*Definition) Apply ¶ added in v0.0.114
func (definition *Definition) Apply(format contracts.Format, obj contracts.ObjectInterface, kind string) (contracts.ObjectInterface, error)
func (*Definition) Changed ¶ added in v0.0.114
func (definition *Definition) Changed(format contracts.Format, obj contracts.ObjectInterface) (bool, error)
func (*Definition) Delete ¶ added in v0.0.114
func (definition *Definition) Delete(format contracts.Format, obj contracts.ObjectInterface, kind string) (contracts.IDefinition, error)
func (*Definition) FromJson ¶ added in v0.0.114
func (definition *Definition) FromJson(bytes []byte) error
func (*Definition) GetKind ¶ added in v0.0.114
func (definition *Definition) GetKind() string
func (*Definition) GetRuntime ¶ added in v0.0.114
func (definition *Definition) GetRuntime() *commonv1.Runtime
func (*Definition) ResolveReferences ¶ added in v0.0.114
func (definition *Definition) ResolveReferences(obj contracts.ObjectInterface) ([]contracts.IDefinition, error)
func (*Definition) SetRuntime ¶ added in v0.0.114
func (definition *Definition) SetRuntime(runtime *commonv1.Runtime)
func (*Definition) ToJson ¶ added in v0.0.114
func (definition *Definition) ToJson() ([]byte, error)
func (*Definition) ToJsonForUser ¶ added in v0.0.120
func (definition *Definition) ToJsonForUser() ([]byte, error)
func (*Definition) ToJsonString ¶ added in v0.0.114
func (definition *Definition) ToJsonString() (string, error)
func (*Definition) ToJsonWithKind ¶ added in v0.0.114
func (definition *Definition) ToJsonWithKind() ([]byte, error)
func (*Definition) Validate ¶ added in v0.0.114
func (definition *Definition) Validate() (bool, error)
Click to show internal directories.
Click to hide internal directories.