model

package
v0.0.0-...-40ccd29 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 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 Cluster

type Cluster struct {
	URL   string `json:"url"`
	Token string `json:"token,omitempty"`
}

Cluster is an entity holding a single cluster

type Clusters

type Clusters map[string]*Cluster // cluster_name -> cluster

Clusters is a map of clusters

type Constraints

type Constraints struct {
	Replicas int32    `json:"replicas" yaml:"replicas"`
	CPU      *float32 `json:"cpu,omitempty" yaml:"cpu,omitempty"`
	Memory   *int64   `json:"memory,omitempty" yaml:"memory,omitempty"`
}

Constraints holds the constraints information

type Credentials

type Credentials struct {
	User string `json:"user,omitempty" yaml:"user,omitempty"`
	Pass string `json:"pass,omitempty" yaml:"pass,omitempty"`
}

Credentials stores the space cloud credentials

type Deploy

type Deploy struct {
	// Deployment specific config
	Name        string            `json:"name" yaml:"name"`
	Project     string            `json:"project" yaml:"project"`
	Kind        string            `json:"kind" yaml:"kind"`
	Runtime     *Runtime          `json:"runtime" yaml:"runtime"`
	Env         map[string]string `json:"env" yaml:"env"`
	Constraints *Constraints      `json:"constraints" yaml:"constraints"`
	Ports       []*Port           `json:"ports,omitempty" yaml:"ports,omitempty"`
	Expose      []*Expose         `json:"expose,omitempty" yaml:"expose,omitempty"`

	// CLI specific config
	WorkingDir string `json:"workingDir" yaml:"workingDir"`
	Ignore     string `json:"ignore" yaml:"ignore"`
}

Deploy holds the config for the deployment

type Expose

type Expose struct {
	Prefix string `json:"prefix" yaml:"prefix"`
	Host   string `json:"host" yaml:"host"`
	Proxy  string `json:"proxy" yaml:"proxy"`
}

Expose holds the information about the ports to expose

type GlobalConfig

type GlobalConfig struct {
	Clusters Clusters `json:"clusters"`
}

GlobalConfig stores the global config

type Port

type Port struct {
	Name     *string `json:"name,omitempty" yaml:"name,omitempty"`
	Port     int32   `json:"port" yaml:"port"`
	Protocol *string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
}

Port holds the container ports information

type Runtime

type Runtime struct {
	Name    string `json:"name" yaml:"name"`
	Install string `json:"install" yaml:"install"`
	Run     string `json:"run" yaml:"run"`
}

Runtime holds the runtime information

Jump to

Keyboard shortcuts

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