runtime

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RuntimeCredentialIdColumn      = "runtime_credential_id"
	RuntimeCredentialContentColumn = "content"
)
View Source
const (
	NameColumn        = "name"
	DescriptionColumn = "description"
	StatusColumn      = "status"
	StatusTimeColumn  = "status_time"
)
View Source
const (
	NameMinLength       = "1"
	NameMaxLength       = "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 CheckRuntimePermission added in v0.2.3

func CheckRuntimePermission(ctx context.Context, resourceId string) (*models.Runtime, error)

func CheckRuntimesPermission added in v0.2.3

func CheckRuntimesPermission(ctx context.Context, resourceIds []string) ([]*models.Runtime, error)

func CredentialJsonStringToString added in v0.2.0

func CredentialJsonStringToString(provider, content string) string

func CredentialStringToJsonString added in v0.2.0

func CredentialStringToJsonString(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(ctx context.Context, runtimeId, provider, url, credential, zone string) error

func ValidateLabelKey

func ValidateLabelKey(ctx context.Context, labelName string) error

func ValidateLabelMapFmt

func ValidateLabelMapFmt(ctx context.Context, labelMap map[string][]string) error

func ValidateLabelString

func ValidateLabelString(ctx context.Context, labelString string) error

func ValidateLabelValue

func ValidateLabelValue(ctx context.Context, labelValue string) error

func ValidateName

func ValidateName(ctx context.Context, name string) error

func ValidateSelectorMapFmt

func ValidateSelectorMapFmt(ctx context.Context, selectorMap map[string][]string) error

func ValidateSelectorString

func ValidateSelectorString(ctx context.Context, selectorString string) error

func ValidateURL

func ValidateURL(ctx context.Context, url string) error

func ValidateZone

func ValidateZone(ctx context.Context, zone string) error

Types

type Server

type Server struct {
}

func (*Server) Builder added in v0.2.3

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

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