models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CronJobStatusRunning captures enum value "running"
	CronJobStatusRunning string = "running"

	// CronJobStatusStoped captures enum value "stoped"
	CronJobStatusStoped string = "stoped"
)
View Source
const (

	// CryptoDataFormatBase64 captures enum value "base64"
	CryptoDataFormatBase64 string = "base64"

	// CryptoDataFormatRaw captures enum value "raw"
	CryptoDataFormatRaw string = "raw"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
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

func (m *CronJob) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cron job based on the context it is used

func (*CronJob) MarshalBinary

func (m *CronJob) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CronJob) UnmarshalBinary

func (m *CronJob) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CronJob) Validate

func (m *CronJob) Validate(formats strfmt.Registry) error

Validate validates this cron job

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

func (m *CronJobSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*CronJobSpec) Validate

func (m *CronJobSpec) Validate(formats strfmt.Registry) error

Validate validates this cron job spec

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

func (m *CryptoData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*CryptoData) Validate

func (m *CryptoData) Validate(formats strfmt.Registry) error

Validate validates this crypto data

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

func (m *HealthProbe) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthProbe) Validate

func (m *HealthProbe) Validate(formats strfmt.Registry) error

Validate validates this health probe

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

func (m *HealthStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthStatus) Validate

func (m *HealthStatus) Validate(formats strfmt.Registry) error

Validate validates this health status

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

func (m *Job) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job based on the context it is used

func (*Job) MarshalBinary

func (m *Job) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Job) UnmarshalBinary

func (m *Job) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Job) Validate

func (m *Job) Validate(formats strfmt.Registry) error

Validate validates this job

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

func (m *JobInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this job input based on context it is used

func (*JobInput) MarshalBinary

func (m *JobInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobInput) UnmarshalBinary

func (m *JobInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobInput) Validate

func (m *JobInput) Validate(formats strfmt.Registry) error

Validate validates this job input

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

func (m *JobOutput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this job output based on context it is used

func (*JobOutput) MarshalBinary

func (m *JobOutput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobOutput) UnmarshalBinary

func (m *JobOutput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobOutput) Validate

func (m *JobOutput) Validate(formats strfmt.Registry) error

Validate validates this job output

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

func (m *JobSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this job spec based on context it is used

func (*JobSpec) MarshalBinary

func (m *JobSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobSpec) UnmarshalBinary

func (m *JobSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobSpec) Validate

func (m *JobSpec) Validate(formats strfmt.Registry) error

Validate validates this job spec

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

func (m *JobStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job status based on the context it is used

func (*JobStatus) MarshalBinary

func (m *JobStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobStatus) UnmarshalBinary

func (m *JobStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobStatus) Validate

func (m *JobStatus) Validate(formats strfmt.Registry) error

Validate validates this job status

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

func (m *KubeMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*KubeMetadata) Validate

func (m *KubeMetadata) Validate(formats strfmt.Registry) error

Validate validates this kube metadata

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

func (m *KubeSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*KubeSecret) Validate

func (m *KubeSecret) Validate(formats strfmt.Registry) error

Validate validates this kube secret

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

func (m *ReadyStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ReadyStatus) Validate

func (m *ReadyStatus) Validate(formats strfmt.Registry) error

Validate validates this ready status

Jump to

Keyboard shortcuts

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