runtime

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RuntimeCredentialIdColumn      = "runtime_credential_id"
	RuntimeCredentialContentColumn = "content"
	RuntimeIdColumn                = "runtime_id"
	RuntimeLabelValueColumn        = "label_value"
	RuntimeLabelKeyColumn          = "label_key"
)
View Source
const (
	NameColumn        = "name"
	DescriptionColumn = "description"
	StatusColumn      = "status"
	StatusTimeColumn  = "status_time"
	LabelKeyColumn    = "label_key"
	LabelValueColumn  = "label_value"
)
View Source
const (
	NameMinLength       = "1"
	NameMaxLength       = "255"
	ProviderMinLength   = "1"
	ProviderMaxLength   = "255"
	ZoneMinLength       = "1"
	ZoneMaxLength       = "255"
	CredentialMinLength = 1
	LabelKeyMinLength   = "1"
	LabelKeyMaxLength   = "50"
	LabelValueMinLength = "1"
	LabelValueMaxLength = "255"
	LabelKeyFmt         = "^[a-zA-Z]([-_a-zA-Z0-9]*[a-zA-Z0-9])?$"
)

Variables

View Source
var LabelNameRegexp = regexp.MustCompile(LabelKeyFmt)

Functions

func BuildDeleteLabelFilterCondition

func BuildDeleteLabelFilterCondition(runtimeId, labelKey, labelValue string) dbr.Builder

func LabelMapDiff

func LabelMapDiff(oldLabelMap, newLabelMap map[string]string) (additions, deletions map[string]string)

func LabelStringToMap

func LabelStringToMap(labelString string) (map[string]string, error)

func LabelStructToMap

func LabelStructToMap(labelStructs []*models.RuntimeLabel) map[string]string

func RuntimeCredentialJsonStringToString

func RuntimeCredentialJsonStringToString(provider, content string) string

func RuntimeCredentialStringToJsonString

func RuntimeCredentialStringToJsonString(provider, content string) string

func SelectorStringToMap

func SelectorStringToMap(selectorString string) (map[string][]string, error)

func Serve

func Serve(cfg *config.Config)

func ValidateCredential

func ValidateCredential(provider, url, credential, zone string) error

func ValidateLabelKey

func ValidateLabelKey(labelName string) error

func ValidateLabelMapFmt

func ValidateLabelMapFmt(labelMap map[string][]string) error

func ValidateLabelString

func ValidateLabelString(labelString string) error

func ValidateLabelValue

func ValidateLabelValue(labelValue string) error

func ValidateName

func ValidateName(name string) error

func ValidateProvider

func ValidateProvider(provider string) error

func ValidateSelectorMapFmt

func ValidateSelectorMapFmt(selectorMap map[string][]string) error

func ValidateSelectorString

func ValidateSelectorString(selectorString string) error

func ValidateURL

func ValidateURL(url string) error

func ValidateZone

func ValidateZone(zone string) error

Types

type Server

type Server struct {
	*pi.Pi
}

func (*Server) Checker added in v0.1.2

func (p *Server) Checker(ctx context.Context, req interface{}) error

func (*Server) CreateRuntime

func (p *Server) CreateRuntime(ctx context.Context, req *pb.CreateRuntimeRequest) (*pb.CreateRuntimeResponse, error)

func (*Server) DeleteRuntimes

func (p *Server) DeleteRuntimes(ctx context.Context, req *pb.DeleteRuntimesRequest) (*pb.DeleteRuntimesResponse, error)

func (*Server) DescribeRuntimeDetails added in v0.1.5

func (p *Server) DescribeRuntimeDetails(ctx context.Context, req *pb.DescribeRuntimesRequest) (*pb.DescribeRuntimeDetailsResponse, error)

func (*Server) DescribeRuntimes

func (p *Server) DescribeRuntimes(ctx context.Context, req *pb.DescribeRuntimesRequest) (*pb.DescribeRuntimesResponse, error)

func (*Server) GetRuntimeStatistics added in v0.1.5

func (*Server) ModifyRuntime

func (p *Server) ModifyRuntime(ctx context.Context, req *pb.ModifyRuntimeRequest) (*pb.ModifyRuntimeResponse, error)

Jump to

Keyboard shortcuts

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