v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 CertKeyDefinition added in v0.0.3

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

func (*CertKeyDefinition) ToJsonString added in v0.0.3

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

func (*CertKeyDefinition) Validate added in v0.0.3

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

type CertKeyMeta

type CertKeyMeta struct {
	Group string `json:"group"`
	Name  string `json:"name"`
}

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 ConfigurationDefinition added in v0.0.3

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

func (*ConfigurationDefinition) ToJsonString added in v0.0.3

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

func (*ConfigurationDefinition) Validate added in v0.0.3

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

type ConfigurationMeta

type ConfigurationMeta struct {
	Group string `json:"group"`
	Name  string `json:"name"`
}

type ConfigurationSpec

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

type ContainerDefinition added in v0.0.3

type ContainerDefinition struct {
	Meta ContainerMeta `json:"meta"  validate:"required"`
	Spec ContainerSpec `json:"spec"  validate:"required"`
}

func (*ContainerDefinition) ToJsonString added in v0.0.3

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

func (*ContainerDefinition) Validate added in v0.0.3

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

type ContainerDependsOn added in v0.0.3

type ContainerDependsOn struct {
	Name    string `validate:"required" json:"name"`
	Group   string `validate:"required" json:"group"`
	Timeout string `validate:"required" json:"timeout"`
}

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  []ContainerDependsOn `json:"dependencies"`
	Readiness     []ContainerReadiness `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]string    `json:"configuration"`
	Resources     []map[string]string  `json:"resources"`
	Replicas      int                  `validate:"required" json:"replicas"`
	Capabilities  []string             `json:"capabilities"`
	Privileged    bool                 `json:"privileged"`
	NetworkMode   string               `json:"network_mode"`
}

type ContainerMeta added in v0.0.3

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

type ContainerReadiness added in v0.0.3

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

type ContainerSpec added in v0.0.3

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

type ContainersDefinition added in v0.0.3

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

func (*ContainersDefinition) ToJsonString added in v0.0.3

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

func (*ContainersDefinition) Validate added in v0.0.3

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

type ContainersMeta added in v0.0.3

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

type GitopsCertKeyRef added in v0.0.3

type GitopsCertKeyRef struct {
	Group string
	Name  string
}

type GitopsDefinition added in v0.0.3

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

func (*GitopsDefinition) ToJsonString added in v0.0.3

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

func (*GitopsDefinition) Validate added in v0.0.3

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

type GitopsHttpauthRef added in v0.0.3

type GitopsHttpauthRef struct {
	Group string
	Name  string
}

type GitopsMeta

type GitopsMeta struct {
	Group string `json:"group"`
	Name  string `json:"name"`
}

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      GitopsCertKeyRef  `json:"certKeyRef"`
	HttpAuthRef     GitopsHttpauthRef `json:"httpAuthRef"`
}

type HttpAuthDefinition added in v0.0.3

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

func (*HttpAuthDefinition) ToJsonString added in v0.0.3

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

func (*HttpAuthDefinition) Validate added in v0.0.3

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

type HttpAuthMeta

type HttpAuthMeta struct {
	Group string `json:"group"`
	Name  string `json:"name"`
}

type HttpAuthSpec

type HttpAuthSpec struct {
	Username string
	Password string
}

type ResourceDefinition added in v0.0.3

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

func (*ResourceDefinition) ToJsonString added in v0.0.3

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

func (*ResourceDefinition) Validate added in v0.0.3

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

type ResourceMeta

type ResourceMeta struct {
	Group string `json:"group"`
	Name  string `json:"name"`
}

type ResourceSpec

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

Jump to

Keyboard shortcuts

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