definitions

package
v0.0.132 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImplementation added in v0.0.114

func NewImplementation(kind string) contracts.IDefinition

func ReadFile

func ReadFile(filePath string) ([]byte, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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