Documentation ¶
Index ¶
Constants ¶
const ( // CronJobStatusRunning captures enum value "running" CronJobStatusRunning string = "running" // CronJobStatusStoped captures enum value "stoped" CronJobStatusStoped string = "stoped" )
const ( // CryptoDataFormatBase64 captures enum value "base64" CryptoDataFormatBase64 string = "base64" // CryptoDataFormatRaw captures enum value "raw" CryptoDataFormatRaw string = "raw" )
const ( // HealthProbeStatusUnknown captures enum value "unknown" HealthProbeStatusUnknown string = "unknown" // HealthProbeStatusHealthy captures enum value "healthy" HealthProbeStatusHealthy string = "healthy" // HealthProbeStatusWarning captures enum value "warning" HealthProbeStatusWarning string = "warning" // HealthProbeStatusCritical captures enum value "critical" HealthProbeStatusCritical string = "critical" )
const ( // HealthStatusStatusUnknown captures enum value "unknown" HealthStatusStatusUnknown string = "unknown" // HealthStatusStatusHealthy captures enum value "healthy" HealthStatusStatusHealthy string = "healthy" // HealthStatusStatusWarning captures enum value "warning" HealthStatusStatusWarning string = "warning" // HealthStatusStatusCritical captures enum value "critical" HealthStatusStatusCritical string = "critical" )
const ( // JobStatusStateWaiting captures enum value "waiting" JobStatusStateWaiting string = "waiting" // JobStatusStateRunning captures enum value "running" JobStatusStateRunning string = "running" // JobStatusStateExited captures enum value "exited" JobStatusStateExited string = "exited" // JobStatusStateKilled captures enum value "killed" JobStatusStateKilled string = "killed" // JobStatusStateFailedStart captures enum value "failed_start" JobStatusStateFailedStart string = "failed_start" )
const ( // ReadyStatusStatusReady captures enum value "ready" ReadyStatusStatusReady string = "ready" // ReadyStatusStatusNotReady captures enum value "not_ready" ReadyStatusStatusNotReady string = "not_ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct { // Cronjob id // Pattern: ^[A-Za-z0-9\-]{36}$ ID string `json:"id,omitempty"` // History jobs // Required: true Jobs []string `json:"jobs"` // Cronjob spec // Required: true Spec *CronJobSpec `json:"spec"` // status // Enum: [running stoped] Status string `json:"status,omitempty"` }
CronJob Cronjob
swagger:model CronJob
func (*CronJob) ContextValidate ¶
ContextValidate validate this cron job based on the context it is used
func (*CronJob) MarshalBinary ¶
MarshalBinary interface implementation
func (*CronJob) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CronJobSpec ¶
type CronJobSpec struct { // Job spec // Required: true Jobspec *JobSpec `json:"jobspec"` // Job name // Required: true // Pattern: ^[A-Za-z0-9\-._]{1,32}$ Name string `json:"name"` // Cronjob schedule // Required: true Schedule string `json:"schedule"` }
CronJobSpec Cronjob spec
swagger:model CronJobSpec
func (*CronJobSpec) ContextValidate ¶
ContextValidate validate this cron job spec based on the context it is used
func (*CronJobSpec) MarshalBinary ¶
func (m *CronJobSpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CronJobSpec) UnmarshalBinary ¶
func (m *CronJobSpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CryptoData ¶
type CryptoData struct { // Data dictionary // Required: true Data map[string]string `json:"data"` // Data format // Required: true // Enum: [base64 raw] Format string `json:"format"` }
CryptoData Data to encrypt or decrypt
swagger:model CryptoData
func (*CryptoData) ContextValidate ¶
ContextValidate validates this crypto data based on context it is used
func (*CryptoData) MarshalBinary ¶
func (m *CryptoData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CryptoData) UnmarshalBinary ¶
func (m *CryptoData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthProbe ¶
type HealthProbe struct { // Probe item message Message *string `json:"message,omitempty"` // Probe item name // Required: true Name string `json:"name"` // Probe item status // Required: true // Enum: [unknown healthy warning critical] Status string `json:"status"` }
HealthProbe Node healthy probes
swagger:model HealthProbe
func (*HealthProbe) ContextValidate ¶
ContextValidate validates this health probe based on context it is used
func (*HealthProbe) MarshalBinary ¶
func (m *HealthProbe) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthProbe) UnmarshalBinary ¶
func (m *HealthProbe) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthStatus ¶
type HealthStatus struct { // Plugin health probes // Required: true Probes map[string]map[string]HealthProbe `json:"probes"` // Node healthy status // Required: true // Enum: [unknown healthy warning critical] Status string `json:"status"` }
HealthStatus Node healthy status
swagger:model HealthStatus
func (*HealthStatus) ContextValidate ¶
ContextValidate validate this health status based on the context it is used
func (*HealthStatus) MarshalBinary ¶
func (m *HealthStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthStatus) UnmarshalBinary ¶
func (m *HealthStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Job ¶
type Job struct { // Job id // Required: true // Pattern: ^[A-Za-z0-9\-]{36}$ ID string `json:"id"` // Job spec // Required: true Spec *JobSpec `json:"spec"` // Job status // Required: true Status *JobStatus `json:"status"` // Job urn // Pattern: ^[A-Za-z0-9\-._]{1,32}:jobs:[A-Za-z0-9\-._]{1,32}:[A-Za-z0-9\-]{36}$ Urn string `json:"urn,omitempty"` }
Job Job
swagger:model Job
func (*Job) ContextValidate ¶
ContextValidate validate this job based on the context it is used
func (*Job) MarshalBinary ¶
MarshalBinary interface implementation
func (*Job) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type JobInput ¶
type JobInput struct { // Input data // Required: true Data string `json:"data"` // Expect string Expect *string `json:"expect,omitempty"` // Expect timeout in seconds Timeout *int32 `json:"timeout,omitempty"` }
JobInput Job input
swagger:model JobInput
func (*JobInput) ContextValidate ¶
ContextValidate validates this job input based on context it is used
func (*JobInput) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobInput) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type JobOutput ¶
type JobOutput struct { // Last output line // Required: true LastLine int32 `json:"lastLine"` // Output // Required: true Lines []string `json:"lines"` // There is more line // Required: true MoreLine bool `json:"moreLine"` }
JobOutput Job output
swagger:model JobOutput
func (*JobOutput) ContextValidate ¶
ContextValidate validates this job output based on context it is used
func (*JobOutput) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobOutput) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type JobSpec ¶
type JobSpec struct { // Arguments Args []string `json:"args"` // Enviorment variables, key=value array Env []string `json:"env"` // Operation // Required: true // Pattern: ^[A-Za-z0-9\-_.]{1,32}$ Operation string `json:"operation"` // Plugin // Required: true // Pattern: ^[A-Za-z0-9\-_.]{1,32}$ Plugin string `json:"plugin"` }
JobSpec Job spec
swagger:model JobSpec
func (*JobSpec) ContextValidate ¶
ContextValidate validates this job spec based on context it is used
func (*JobSpec) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobSpec) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type JobStatus ¶
type JobStatus struct { // Exit code ExitCode *int32 `json:"exitCode,omitempty"` // Job output Output *JobOutput `json:"output,omitempty"` // Job state // Required: true // Enum: [waiting running exited killed failed_start] State string `json:"state"` }
JobStatus Job status
swagger:model JobStatus
func (*JobStatus) ContextValidate ¶
ContextValidate validate this job status based on the context it is used
func (*JobStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type KubeMetadata ¶
type KubeMetadata struct { // Annotations Annotations map[string]string `json:"annotations,omitempty"` // Labels Labels map[string]string `json:"labels,omitempty"` // Name // Required: true Name string `json:"name"` // Name Namespace *string `json:"namespace,omitempty"` }
KubeMetadata K8S metadata
swagger:model KubeMetadata
func (*KubeMetadata) ContextValidate ¶
ContextValidate validates this kube metadata based on context it is used
func (*KubeMetadata) MarshalBinary ¶
func (m *KubeMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KubeMetadata) UnmarshalBinary ¶
func (m *KubeMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type KubeSecret ¶
type KubeSecret struct { // API version // Required: true APIVersion string `json:"apiVersion"` // Data dictionary // Required: true Data map[string]string `json:"data"` // Kind // Required: true Kind string `json:"kind"` // Metadata // Required: true Metadata *KubeMetadata `json:"metadata"` // Kind // Required: true Type string `json:"type"` }
KubeSecret K8S secret
swagger:model KubeSecret
func (*KubeSecret) ContextValidate ¶
ContextValidate validate this kube secret based on the context it is used
func (*KubeSecret) MarshalBinary ¶
func (m *KubeSecret) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KubeSecret) UnmarshalBinary ¶
func (m *KubeSecret) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReadyStatus ¶
type ReadyStatus struct { // status // Required: true // Enum: [ready not_ready] Status string `json:"status"` }
ReadyStatus Ready status
swagger:model ReadyStatus
func (*ReadyStatus) ContextValidate ¶
ContextValidate validates this ready status based on context it is used
func (*ReadyStatus) MarshalBinary ¶
func (m *ReadyStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReadyStatus) UnmarshalBinary ¶
func (m *ReadyStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation