cuegen

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Kinds = kindsContainer{
	UNKNOWN:       Kind{unknown},
	Cuegen:        Kind{cuegen},
	CuegenPackage: Kind{cuegenpackage},
	CuegenLibrary: Kind{cuegenlibrary},
}

Functions

This section is empty.

Types

type Cuegen

type Cuegen struct {
	Packages []Package
	Output   io.Writer
}

func (Cuegen) Exec

func (c Cuegen) Exec() error

type CuegenConfig

type CuegenConfig struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   Meta   `yaml:"metadata"`
	Spec       Spec   `yaml:"spec"`
}

type Detect added in v0.14.3

type Detect struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
}

type Kind added in v0.14.3

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

func Parse added in v0.14.3

func Parse(a any) Kind

func (Kind) IsValid added in v0.14.3

func (t Kind) IsValid() bool

func (Kind) MarshalJSON added in v0.14.3

func (t Kind) MarshalJSON() ([]byte, error)

func (Kind) String added in v0.14.3

func (t Kind) String() string

func (*Kind) UnmarshalJSON added in v0.14.3

func (t *Kind) UnmarshalJSON(b []byte) error

type Location added in v0.14.3

type Location struct {
	URI     string
	Path    string
	Ref     string
	Package string
}

func (Location) Hash added in v0.14.3

func (l Location) Hash() string

type Meta added in v0.14.3

type Meta struct {
	Name       string `yaml:"name"`
	Version    string `yaml:"version"`
	AppVersion string `yaml:"appVersion"`
	PkgVersion string `yaml:"pkgVersion"`
}

type Package

type Package struct {
	Imports        []Location `yaml:"imports"`
	Packages       []Location `yaml:"packages"`
	ObjectsPath    string
	SecretDataPath string
	Name           string
	Version        string
	Debug          bool
	Kind           Kind
	IsMain         bool
	Resource       Resource
}

type Resource added in v0.14.3

type Resource struct {
	FS       fs.FS
	Type     string
	Location Location
}

type Spec added in v0.14.3

type Spec struct {
	ObjectsPath    string     `yaml:"objectsPath"`
	SecretDataPath string     `yaml:"secretDataPath"`
	Imports        []Location `yaml:"imports"`
	Packages       []Location `yaml:"packages"`
	Debug          bool       `yaml:"debug"`
}

Jump to

Keyboard shortcuts

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