v1

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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" validate:"required"`
	Spec CertKeySpec `json:"spec" validate:"required"`
}

func (*CertKeyDefinition) ToJson added in v0.0.52

func (certkey *CertKeyDefinition) ToJson() ([]byte, error)

func (*CertKeyDefinition) ToJsonString added in v0.0.3

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

func (*CertKeyDefinition) ToJsonStringWithKind added in v0.0.68

func (certkey *CertKeyDefinition) ToJsonStringWithKind() (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" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

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" validate:"required"`
	Spec ConfigurationSpec `json:"spec" validate:"required"`
}

func (*ConfigurationDefinition) ToJson added in v0.0.52

func (configuration *ConfigurationDefinition) ToJson() ([]byte, error)

func (*ConfigurationDefinition) ToJsonString added in v0.0.3

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

func (*ConfigurationDefinition) ToJsonStringWithKind added in v0.0.68

func (configuration *ConfigurationDefinition) ToJsonStringWithKind() (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" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

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) ToJson added in v0.0.52

func (container *ContainerDefinition) ToJson() ([]byte, error)

func (*ContainerDefinition) ToJsonString added in v0.0.3

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

func (*ContainerDefinition) ToJsonStringWithKind added in v0.0.68

func (container *ContainerDefinition) ToJsonStringWithKind() (string, error)

func (*ContainerDefinition) Validate added in v0.0.3

func (container *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"`
	Args          []string             `json:"args"`
	Dependencies  []ContainerDependsOn `json:"dependencies"`
	Readiness     []ContainerReadiness `json:"readiness"`
	Networks      []ContainerNetwork   `json:"networks"`
	Ports         []ContainerPort      `json:"ports"`
	Volumes       []ContainerVolume    `json:"volumes"`
	Configuration map[string]string    `json:"configuration"`
	Resources     []ContainerResource  `json:"resources"`
	Replicas      uint64               `validate:"required" json:"replicas"`
	Capabilities  []string             `json:"capabilities"`
	Privileged    bool                 `json:"privileged"`
	NetworkMode   string               `json:"network_mode"`
	Spread        ContainerSpread      `json:"spread"`
	Nodes         []string             `json:"nodes"`
	Dns           []string             `json:"dns"`
}

type ContainerMeta added in v0.0.3

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

type ContainerNetwork added in v0.0.28

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

type ContainerPort added in v0.0.28

type ContainerPort struct {
	Container string `json:"container"`
	Host      string `json:"host"`
}

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 ContainerResource added in v0.0.28

type ContainerResource struct {
	Name       string
	Group      string
	Key        string
	MountPoint string
}

type ContainerSpec added in v0.0.3

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

type ContainerSpread added in v0.0.69

type ContainerSpread struct {
	Spread string
	Agents []uint64
}

type ContainerVolume added in v0.0.28

type ContainerVolume struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	HostPath   string `json:"hostPath"`
	MountPoint string `json:"mountPoint"`
}

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) ToJson added in v0.0.52

func (containers *ContainersDefinition) ToJson() ([]byte, error)

func (*ContainersDefinition) ToJsonString added in v0.0.3

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

func (*ContainersDefinition) ToJsonStringWithKind added in v0.0.68

func (containers *ContainersDefinition) ToJsonStringWithKind() (string, error)

func (*ContainersDefinition) Validate added in v0.0.3

func (containers *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" validate:"required"`
	Spec GitopsSpec `json:"spec" validate:"required"`
}

func (*GitopsDefinition) ToJson added in v0.0.52

func (gitops *GitopsDefinition) ToJson() ([]byte, error)

func (*GitopsDefinition) ToJsonString added in v0.0.3

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

func (*GitopsDefinition) ToJsonStringWithKind added in v0.0.68

func (gitops *GitopsDefinition) ToJsonStringWithKind() (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" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

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"`
	API             string            `json:"API"`
	Context         string            `json:"context"`
	CertKeyRef      GitopsCertKeyRef  `json:"certKeyRef"`
	HttpAuthRef     GitopsHttpauthRef `json:"httpAuthRef"`
}

type HttpAuthDefinition added in v0.0.3

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

func (*HttpAuthDefinition) ToJson added in v0.0.52

func (httpauth *HttpAuthDefinition) ToJson() ([]byte, error)

func (*HttpAuthDefinition) ToJsonString added in v0.0.3

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

func (*HttpAuthDefinition) ToJsonStringWithKind added in v0.0.68

func (httpauth *HttpAuthDefinition) ToJsonStringWithKind() (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" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

type HttpAuthSpec

type HttpAuthSpec struct {
	Username string
	Password string
}

type NetworkDefinition added in v0.0.24

type NetworkDefinition struct {
	Meta NetworkMeta `json:"meta" validate:"required"`
	Spec NetworkSpec `json:"spec" validate:"required"`
}

func (*NetworkDefinition) ToJson added in v0.0.52

func (network *NetworkDefinition) ToJson() ([]byte, error)

func (*NetworkDefinition) ToJsonString added in v0.0.24

func (network *NetworkDefinition) ToJsonString() (string, error)

func (*NetworkDefinition) ToJsonStringWithKind added in v0.0.68

func (network *NetworkDefinition) ToJsonStringWithKind() (string, error)

func (*NetworkDefinition) Validate added in v0.0.24

func (network *NetworkDefinition) Validate() (bool, error)

type NetworkMeta added in v0.0.24

type NetworkMeta struct {
	Group string `json:"group" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

type NetworkSpec added in v0.0.24

type NetworkSpec struct {
	Driver          string
	IPV4AddressPool string
}

type ResourceDefinition added in v0.0.3

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

func (*ResourceDefinition) ToJson added in v0.0.52

func (resource *ResourceDefinition) ToJson() ([]byte, error)

func (*ResourceDefinition) ToJsonString added in v0.0.3

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

func (*ResourceDefinition) ToJsonStringWithKind added in v0.0.68

func (resource *ResourceDefinition) ToJsonStringWithKind() (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" validate:"required"`
	Name  string `json:"name" validate:"required"`
}

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