appspecvalidator

package
v0.0.0-...-b79cc66 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAndValidateAppSpec

func ParseAndValidateAppSpec(InputAppSpecFile string) error

Types

type AppSpec

type AppSpec struct {
	ApiVersion *string   `yaml:"apiVersion"`
	Kind       *string   `yaml:"kind"`
	Metadata   *Metadata `yaml:"metadata"`
	Spec       *Spec     `yaml:"spec"`
}

type ContainerSpec

type ContainerSpec struct {
	Name         *string         `yaml:"name"`
	Image        *string         `yaml:"image"`
	Resources    *Resources      `yaml:"resources,omitempty"`
	VolumeMounts []*VolumeMounts `yaml:"volumeMounts,omitempty"`
	Env          []*Env          `yaml:"env,omitempty"`
}

type Env

type Env struct {
	Name  *string `yaml:"name"`
	Value *string `yaml:"value"`
}

type Labels

type Labels struct {
	App *string `yaml:"app"`
}

type Metadata

type Metadata struct {
	Name        *string `yaml:"name"`
	Labels      *Labels `yaml:"labels,omitempty"`
	CohesityTag *string `yaml:"cohesityTag,omitempty"`
}

type Pair

type Pair struct {
	// contains filtered or unexported fields
}

type Ports

type Ports struct {
	Port        *int    `yaml:"port"`
	Protocol    *string `yaml:"protocol"`
	Name        *string `yaml:"name"`
	CohesityTag *string `yaml:"cohesityTag,omitempty"`
	CohesityEnv *string `yaml:"cohesityEnv,omitempty"`
}

type Replicas

type Replicas struct {
	Fixed *int `yaml:"fixed"`
	Share *int `yaml:"share,omitempty"`
	Min   *int `yaml:"min,omitempty"`
	Max   *int `yaml:"max,omitempty"`
}

type Requests

type Requests struct {
	Cpu    *string `yaml:"cpu,omitempty"`
	Memory *string `yaml:"memory,omitempty"`
}

type Resources

type Resources struct {
	Requests *Requests `yaml:"requests"`
}

type Selector

type Selector struct {
	MatchLabels *Labels `yaml:"matchLabels"`
}

type Spec

type Spec struct {
	Replicas    *Replicas `yaml:"replicas,omitempty"`
	ServiceName *string   `yaml:"serviceName,omitempty"`
	Selector    *Selector `yaml:"selector,omitempty"`
	Type        *string   `yaml:"type,omitempty"`
	ClusterIp   *string   `yaml:"clusterIp,omitempty"`
	Ports       []*Ports  `yaml:"ports,omitempty"`
	Template    *Template `yaml:"template,omitempty"`
}

type Template

type Template struct {
	Metadata     *Metadata     `yaml:"metadata"`
	TemplateSpec *TemplateSpec `yaml:"spec"`
}

type TemplateSpec

type TemplateSpec struct {
	Containers []*ContainerSpec `yaml:"containers"`
	Volumes    []*VolumeSpec    `yaml:"volumes,omitempty"`
}

type VolumeMounts

type VolumeMounts struct {
	Name      *string `yaml:"name"`
	MountPath *string `yaml:"mountPath"`
}

type VolumeSpec

type VolumeSpec struct {
	Name       *string `yaml:"name"`
	FsType     *string `yaml:"fsType"`
	Type       *string `yaml:"volumeType"`
	VolumeName *string `yaml:"volumeName"`
}

Jump to

Keyboard shortcuts

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