v1

package
v0.0.0-...-88edc58 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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"`
	Networks      []string               `validate:"required" json:"networks"`
	Ports         []network.PortMappings `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"`
	Containers map[string]Container `json:"containers"  validate:"required"`
}

type DependsOn

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

type Gitops

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

func (*Gitops) ToJsonString

func (gitops *Gitops) ToJsonString() (string, 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)

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 Operator

type Operator struct {
	Meta Meta `json:"meta"`
	Spec Spec `json:"spec"`
}

func (*Operator) ToJsonString

func (operator *Operator) ToJsonString() (string, error)

type Resource

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

func (*Resource) ToJsonString

func (resource *Resource) ToJsonString() (string, 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