model

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name       string                 `json:"name"`
	Namespace  string                 `json:"namespace"`
	Image      string                 `json:"image"`
	Args       []string               `json:"args"`
	Env        map[string]interface{} `json:"env"`
	Ports      map[string]interface{} `json:"ports"`
	Replicas   int                    `json:"replicas"`
	Networking *Networking            `json:"networking"`
	Status     *AppStatus             `json:"status"`
	Labels     map[string]interface{} `json:"labels"`
	Selector   map[string]interface{} `json:"selector"`
}

type AppInput added in v0.0.8

type AppInput struct {
	Name       string                 `json:"name"`
	Namespace  string                 `json:"namespace"`
	Image      string                 `json:"image"`
	Args       []string               `json:"args"`
	Env        map[string]interface{} `json:"env"`
	Ports      map[string]interface{} `json:"ports"`
	Replicas   int                    `json:"replicas"`
	Networking *NetworkingInput       `json:"networking"`
	Labels     map[string]interface{} `json:"labels"`
	Selector   map[string]interface{} `json:"selector"`
}

type AppStatus added in v0.0.4

type AppStatus struct {
	Replicas []*Replica `json:"replicas"`
}

type HTTPRoute added in v0.0.7

type HTTPRoute struct {
	Name             string   `json:"name"`
	Port             int      `json:"port"`
	PathPrefix       *string  `json:"path_prefix"`
	RewriteURI       *string  `json:"rewrite_uri"`
	AllowOrigins     []string `json:"allow_origins"`
	AllowMethods     []string `json:"allow_methods"`
	AllowHeaders     []string `json:"allow_headers"`
	ExposeHeaders    []string `json:"expose_headers"`
	AllowCredentials *bool    `json:"allow_credentials"`
}

type HTTPRouteInput added in v0.0.7

type HTTPRouteInput struct {
	Name             *string  `json:"name"`
	Port             *int     `json:"port"`
	PathPrefix       *string  `json:"path_prefix"`
	RewriteURI       *string  `json:"rewrite_uri"`
	AllowOrigins     []string `json:"allow_origins"`
	AllowMethods     []string `json:"allow_methods"`
	AllowHeaders     []string `json:"allow_headers"`
	ExposeHeaders    []string `json:"expose_headers"`
	AllowCredentials *bool    `json:"allow_credentials"`
}

type Log

type Log struct {
	Message string `json:"message"`
}

type Namespace

type Namespace struct {
	Namespace string `json:"namespace"`
}

type Namespaces

type Namespaces struct {
	Namespaces []string `json:"namespaces"`
}

type Networking added in v0.0.6

type Networking struct {
	Gateways   []string     `json:"gateways"`
	Hosts      []string     `json:"hosts"`
	Export     *bool        `json:"export"`
	HTTPRoutes []*HTTPRoute `json:"http_routes"`
}

type NetworkingInput added in v0.0.6

type NetworkingInput struct {
	Gateways   []string          `json:"gateways"`
	Hosts      []string          `json:"hosts"`
	Export     *bool             `json:"export"`
	HTTPRoutes []*HTTPRouteInput `json:"http_routes"`
}

type Ref added in v0.0.1

type Ref struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type Replica

type Replica struct {
	Phase     string `json:"phase"`
	Condition string `json:"condition"`
	Reason    string `json:"reason"`
}

type Task added in v0.0.1

type Task struct {
	Name        string                 `json:"name"`
	Namespace   string                 `json:"namespace"`
	Image       string                 `json:"image"`
	Args        []string               `json:"args"`
	Env         map[string]interface{} `json:"env"`
	Schedule    string                 `json:"schedule"`
	Completions *int                   `json:"completions"`
	Labels      map[string]interface{} `json:"labels"`
	Selector    map[string]interface{} `json:"selector"`
}

type TaskInput added in v0.0.8

type TaskInput struct {
	Name        string                 `json:"name"`
	Namespace   string                 `json:"namespace"`
	Image       string                 `json:"image"`
	Args        []string               `json:"args"`
	Env         map[string]interface{} `json:"env"`
	Schedule    string                 `json:"schedule"`
	Completions *int                   `json:"completions"`
	Labels      map[string]interface{} `json:"labels"`
	Selector    map[string]interface{} `json:"selector"`
}

Jump to

Keyboard shortcuts

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