Documentation
¶
Index ¶
- type CertKey
- type CertKeyMeta
- type CertKeyRef
- type CertKeySpec
- type Configuration
- type ConfigurationMeta
- type ConfigurationSpec
- type Container
- type ContainerInternal
- type Containers
- type DependsOn
- type Gitops
- type GitopsMeta
- type GitopsSpec
- type HttpAuth
- type HttpAuthMeta
- type HttpAuthSpec
- type HttpauthRef
- type Meta
- type Readiness
- type Resource
- type ResourceMeta
- type ResourceSpec
- type Spec
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 ¶
type CertKeyMeta ¶
type CertKeyRef ¶
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 ConfigurationSpec ¶
type Container ¶
type Container struct {
Meta Meta `json:"meta" validate:"required"`
Spec Spec `json:"spec" validate:"required"`
}
func (*Container) ToJsonString ¶
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]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 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 Gitops ¶
type Gitops struct {
Meta GitopsMeta `json:"meta"`
Spec GitopsSpec `json:"spec"`
}
func (*Gitops) ToJsonString ¶
type GitopsMeta ¶
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 ¶
type HttpAuthMeta ¶
type HttpAuthSpec ¶
type HttpauthRef ¶
type Resource ¶
type Resource struct {
Meta ResourceMeta `json:"meta"`
Spec ResourceSpec `json:"spec"`
}
func (*Resource) ToJsonString ¶
type ResourceMeta ¶
type ResourceSpec ¶
type Spec ¶
type Spec struct {
Container ContainerInternal `validate:"required" json:"container" `
}
Click to show internal directories.
Click to hide internal directories.