types

package
v0.8.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscale added in v0.7.4

type Autoscale struct {
	MinReplicas *int32 `json:"minReplicas,omitempty" form:"min"`
	MaxReplicas *int32 `json:"maxReplicas,omitempty" form:"max"`
	CPU         *int32 `json:"cpu,omitempty" form:"cpu"`
	Memory      *int32 `json:"memory,omitempty" form:"memory"`
}

type Block added in v0.7.4

type Block struct {
	Name    string `json:"block_name"`
	Content string `json:"content"`
}

type Flavor

type Flavor struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type InstanceAddress added in v0.7.4

type InstanceAddress struct {
	Hostname string `json:"hostname,omitempty"`
	IP       string `json:"ip,omitempty"`
}

type InstanceInfo added in v0.7.4

type InstanceInfo struct {
	Addresses   []InstanceAddress `json:"addresses,omitempty"`
	Replicas    *int32            `json:"replicas,omitempty"`
	Plan        string            `json:"plan,omitempty"`
	Blocks      []Block           `json:"blocks,omitempty"`
	Routes      []Route           `json:"routes,omitempty"`
	Autoscale   *Autoscale        `json:"autoscale,omitempty"`
	Binds       []v1alpha1.Bind   `json:"binds,omitempty"`
	Team        string            `json:"team,omitempty"`
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Tags        []string          `json:"tags,omitempty"`
	Pods        []Pod             `json:"pods,omitempty"`
}

type Plan

type Plan struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Default     bool   `json:"default"`
}

type Pod added in v0.8.1

type Pod struct {
	CreatedAt time.Time  `json:"createdAt,omitempty"`
	Name      string     `json:"name"`
	IP        string     `json:"ip"`
	HostIP    string     `json:"host"`
	Status    string     `json:"status"`
	Ports     []PodPort  `json:"ports,omitempty"`
	Errors    []PodError `json:"errors,omitempty"`
	Restarts  int32      `json:"restarts"`
	Ready     bool       `json:"ready"`
}

type PodError added in v0.8.1

type PodError struct {
	First   time.Time `json:"first"`
	Last    time.Time `json:"last"`
	Message string    `json:"message"`
	Count   int32     `json:"count"`
}

type PodPort added in v0.8.1

type PodPort corev1.ContainerPort

func (PodPort) String added in v0.8.1

func (p PodPort) String() string

type Route added in v0.7.4

type Route struct {
	Path        string `json:"path"`
	Destination string `json:"destination,omitempty"`
	HTTPSOnly   bool   `json:"https_only,omitempty"`
	Content     string `json:"content,omitempty"`
}

Jump to

Keyboard shortcuts

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