v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertKey

type CertKey struct {
	Meta CertKeyMeta `json:"meta"`
	Spec CertKeySpec `json:"spec"`
}

func (*CertKey) ToJsonString

func (certkey *CertKey) ToJsonString() (string, error)

func (*CertKey) Validate

func (certkey *CertKey) Validate() (bool, error)

type CertKeyMeta

type CertKeyMeta struct {
	Group      string `json:"group"`
	Identifier string `json:"identifier"`
}

type CertKeyRef

type CertKeyRef struct {
	Group      string
	Identifier string
}

type CertKeySpec

type CertKeySpec struct {
	Certificate        string `json:"certificate"`
	PublicKey          string `json:"publicKey"`
	PrivateKey         string `json:"privateKey"`
	PrivateKeyPassword string `json:"privateKeyPassword"`
	KeyStore           string `json:"keystore"`
	KeyStorePassword   string `json:"keyStorePassword"`
	CertStore          string `json:"certstore"`
	CertStorePassword  string `json:"certstorePassword"`
}

type Configuration

type Configuration struct {
	Meta ConfigurationMeta `json:"meta"`
	Spec ConfigurationSpec `json:"spec"`
}

func (*Configuration) ToJsonString

func (configuration *Configuration) ToJsonString() (string, error)

func (*Configuration) Validate

func (configuration *Configuration) Validate() (bool, error)

type ConfigurationMeta

type ConfigurationMeta struct {
	Group      string `json:"group"`
	Identifier string `json:"identifier"`
}

type ConfigurationSpec

type ConfigurationSpec struct {
	Data map[string]string `json:"data"`
}

type Container

type Container struct {
	Meta Meta `json:"meta"  validate:"required"`
	Spec Spec `json:"spec"  validate:"required"`
}

func (*Container) ToJsonString

func (definition *Container) ToJsonString() (string, error)

func (*Container) Validate

func (definition *Container) Validate() (bool, error)

type ContainerInternal

type ContainerInternal struct {
	Image         string              `validate:"required" json:"image"`
	Tag           string              `validate:"required" json:"tag"`
	Envs          []string            `json:"envs"`
	Entrypoint    []string            `json:"entrypoint"`
	Command       []string            `json:"command"`
	Dependencies  []DependsOn         `json:"dependencies"`
	Readiness     []Readiness         `json:"readiness"`
	Networks      []string            `validate:"required" json:"networks"`
	Ports         []map[string]string `json:"ports"`
	Volumes       []map[string]string `json:"volumes"`
	Operators     []map[string]any    `json:"operators"`
	Configuration map[string]any      `json:"configuration"`
	Resources     []map[string]any    `json:"resources"`
	Replicas      int                 `validate:"required" json:"replicas"`
	Capabilities  []string            `json:"capabilities"`
	Privileged    bool                `json:"privileged"`
	NetworkMode   string              `json:"network_mode"`
}

type Containers

type Containers struct {
	Kind string               `json:"kind"  validate:"required"`
	Meta Meta                 `json:"meta"  validate:"required"`
	Spec map[string]Container `json:"spec"  validate:"required"`
}

func (*Containers) ToJsonString

func (definition *Containers) ToJsonString() (string, error)

func (*Containers) Validate

func (definition *Containers) Validate() (bool, error)

type DependsOn

type DependsOn struct {
	Name    string `validate:"required" json:"name"`
	Timeout string `validate:"required" json:"timeout"`
}

type Gitops

type Gitops struct {
	Meta GitopsMeta `json:"meta"`
	Spec GitopsSpec `json:"spec"`
}

func (*Gitops) ToJsonString

func (gitops *Gitops) ToJsonString() (string, error)

func (*Gitops) Validate

func (gitops *Gitops) Validate() (bool, error)

type GitopsMeta

type GitopsMeta struct {
	Group      string `json:"group"`
	Identifier string `json:"identifier"`
}

type GitopsSpec

type GitopsSpec struct {
	RepoURL         string      `json:"repoURL"`
	Revision        string      `json:"revision"`
	DirectoryPath   string      `json:"directory"`
	PoolingInterval string      `json:"poolingInterval"`
	AutomaticSync   bool        `json:"automaticSync"`
	CertKeyRef      CertKeyRef  `json:"certKeyRef"`
	HttpAuthRef     HttpauthRef `json:"httpAuthRef"`
}

type HttpAuth

type HttpAuth struct {
	Meta HttpAuthMeta `json:"meta"`
	Spec HttpAuthSpec `json:"spec"`
}

func (*HttpAuth) ToJsonString

func (httpauth *HttpAuth) ToJsonString() (string, error)

func (*HttpAuth) Validate

func (httpauth *HttpAuth) Validate() (bool, error)

type HttpAuthMeta

type HttpAuthMeta struct {
	Group      string `json:"group"`
	Identifier string `json:"identifier"`
}

type HttpAuthSpec

type HttpAuthSpec struct {
	Username string
	Password string
}

type HttpauthRef

type HttpauthRef struct {
	Group      string
	Identifier string
}

type Meta

type Meta struct {
	Enabled bool              `json:"enabled"`
	Name    string            `validate:"required" json:"name"`
	Group   string            `validate:"required" json:"group"`
	Labels  map[string]string `json:"labels"`
}

type Readiness

type Readiness struct {
	Name     string            `validate:"required" json:"name"`
	Operator string            `json:"operator"`
	Timeout  string            `validate:"required" json:"timeout"`
	Body     map[string]string `json:"body"`
}

type Resource

type Resource struct {
	Meta ResourceMeta `json:"meta"`
	Spec ResourceSpec `json:"spec"`
}

func (*Resource) ToJsonString

func (resource *Resource) ToJsonString() (string, error)

func (*Resource) Validate

func (resource *Resource) Validate() (bool, error)

type ResourceMeta

type ResourceMeta struct {
	Group      string `json:"group"`
	Identifier string `json:"identifier"`
}

type ResourceSpec

type ResourceSpec struct {
	Data map[string]any `json:"data"`
}

type Spec

type Spec struct {
	Container ContainerInternal `validate:"required" json:"container" `
}

Jump to

Keyboard shortcuts

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