models

package
v2.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {

	/* components

	Required: true
	*/
	Components []*ComponentVersion `json:"components"`

	/* first seen
	 */
	FirstSeen *strfmt.DateTime `json:"firstSeen,omitempty"`

	/* id

	Required: true
	Min Length: 1
	*/
	ID string `json:"id"`

	/* last seen
	 */
	LastSeen *strfmt.DateTime `json:"lastSeen,omitempty"`
}

Cluster cluster

swagger:model cluster

func (*Cluster) Validate

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

Validate validates this cluster

type Component

type Component struct {

	/* description
	 */
	Description *string `json:"description,omitempty"`

	/* name

	Required: true
	Min Length: 1
	*/
	Name string `json:"name"`

	/* type
	 */
	Type *string `json:"type,omitempty"`
}

Component component

swagger:model component

func (*Component) Validate

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

Validate validates this component

type ComponentVersion

type ComponentVersion struct {

	/* component
	 */
	Component *Component `json:"component,omitempty"`

	/* update available
	 */
	UpdateAvailable *string `json:"updateAvailable,omitempty"`

	/* version
	 */
	Version *Version `json:"version,omitempty"`
}

ComponentVersion component version

swagger:model componentVersion

func (*ComponentVersion) Validate

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

Validate validates this component version

type DoctorInfo

type DoctorInfo struct {

	/* namespaces

	Required: true
	*/
	Namespaces []*Namespace `json:"namespaces"`

	/* nodes

	Required: true
	*/
	Nodes []*K8sResource `json:"nodes"`

	/* workflow

	Required: true
	*/
	Workflow *Cluster `json:"workflow"`
}

DoctorInfo doctor info

swagger:model doctorInfo

func (*DoctorInfo) Validate

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

Validate validates this doctor info

type Error

type Error struct {

	/* code

	Required: true
	*/
	Code int64 `json:"code"`

	/* message

	Required: true
	*/
	Message string `json:"message"`
}

Error error

swagger:model error

func (*Error) Validate

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

Validate validates this error

type K8sResource

type K8sResource struct {

	/* data

	Required: true
	*/
	Data interface{} `json:"data"`
}

K8sResource k8s resource

swagger:model k8sResource

func (*K8sResource) Validate

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

Validate validates this k8s resource

type Namespace

type Namespace struct {

	/* daemon sets

	Required: true
	*/
	DaemonSets []*K8sResource `json:"daemonSets"`

	/* deployments

	Required: true
	*/
	Deployments []*K8sResource `json:"deployments"`

	/* events

	Required: true
	*/
	Events []*K8sResource `json:"events"`

	/* name

	Required: true
	*/
	Name string `json:"name"`

	/* pods

	Required: true
	*/
	Pods []*K8sResource `json:"pods"`

	/* replica sets

	Required: true
	*/
	ReplicaSets []*K8sResource `json:"replicaSets"`

	/* replication controllers

	Required: true
	*/
	ReplicationControllers []*K8sResource `json:"replicationControllers"`

	/* services

	Required: true
	*/
	Services []*K8sResource `json:"services"`
}

Namespace namespace

swagger:model namespace

func (*Namespace) Validate

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

Validate validates this namespace

type Version

type Version struct {

	/* data
	 */
	Data *VersionData `json:"data,omitempty"`

	/* released

	Min Length: 1
	*/
	Released string `json:"released,omitempty"`

	/* train

	Min Length: 1
	*/
	Train string `json:"train,omitempty"`

	/* version

	Min Length: 1
	*/
	Version string `json:"version,omitempty"`
}

Version version

swagger:model version

func (*Version) Validate

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

Validate validates this version

type VersionData

type VersionData struct {

	/* description

	Min Length: 1
	*/
	Description string `json:"description,omitempty"`

	/* fixes

	Min Length: 1
	*/
	Fixes string `json:"fixes,omitempty"`

	/* image
	 */
	Image *string `json:"image,omitempty"`
}

VersionData version data

swagger:model versionData

func (*VersionData) Validate

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

Validate validates this version data

Jump to

Keyboard shortcuts

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