models

package
v0.0.0-...-db85b72 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Flavors map[string]*Flavor
)

Functions

func CreateApp

func CreateApp(project string, app *App) (result *v1beta1.Deployment, err error)

func CreateIngress

func CreateIngress(project string, i *Ingress) (result *v1beta1.Ingress, err error)

func CreateService

func CreateService(project string, s *Service) (result *v1.Service, err error)

func DeleteApp

func DeleteApp(project string, appName string) (err error)

func DeleteIngress

func DeleteIngress(project string, ingressName string) (err error)

func DeleteService

func DeleteService(project string, serviceName string) (err error)

func GetAllApp

func GetAllApp(project string) (list *v1beta1.DeploymentList, err error)

func GetApp

func GetApp(project string, appName string) (app *v1beta1.Deployment, err error)

func GetIngress

func GetIngress(project string, ingressName string) (result *v1beta1.Ingress, err error)

func GetService

func GetService(project string, serviceName string) (result *v1.Service, err error)

Types

type App

type App struct {
	AppName       string
	Replicas      int32
	Image         string
	ContainerPort int32
	FlavorRef     string
}

type Flavor

type Flavor struct {
	CPU              int64
	Memory           int64
	EphemeralStorage int64
}

type Ingress

type Ingress struct {
	AppName     string
	Host        string
	ServicePort int32
	Path        string
}

type Service

type Service struct {
	AppName string
	//    Protocol string
	Port       int32
	TargetPort int32
}

Jump to

Keyboard shortcuts

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