runtime_env

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeEnvCredentialIdColumn      = "runtime_env_credential_id"
	RuntimeEnvCredentialContentColumn = "content"

	RuntimeEnvIdColumn = "runtime_env_id"

	RuntimeEnvLabelValueColumn = "label_value"
	RuntimeEnvLabelKeyColumn   = "label_key"
)
View Source
const (
	NameColumn        = "name"
	DescriptionColumn = "description"
	StatusColumn      = "status"
	StatusTimeColumn  = "status_time"
	LabelKeyColumn    = "label_key"
	LabelValueColumn  = "label_value"
)

Variables

This section is empty.

Functions

func BuildDeleteLabelFilterConditions

func BuildDeleteLabelFilterConditions(runtimeEnvId, labelKey, labelValue string) dbr.Builder

func BuildInnerJoinTableString

func BuildInnerJoinTableString(baseTableName, tabelName, tableAliasName, column string) string

func BuildSelectOneColumnString

func BuildSelectOneColumnString(tableName, tableAliasName, column string) string

func BuildSelectRuntimeEnvIdBySelectorSql

func BuildSelectRuntimeEnvIdBySelectorSql(selectorMap map[string][]string) string

func BuildSqlEqString

func BuildSqlEqString(tableName, column, value string) string

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.RuntimeEnvLabel) map[string]string

func SelectorStringToMap

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

func Serve

func Serve(cfg *config.Config)

Types

type Server

type Server struct {
	*pi.Pi
}

func (*Server) CreateRuntimeEnv

func (p *Server) CreateRuntimeEnv(ctx context.Context, req *pb.CreateRuntimeEnvRequest) (*pb.CreateRuntimeEnvResponse, error)

func (*Server) DeleteRuntimeEnv

func (p *Server) DeleteRuntimeEnv(ctx context.Context, req *pb.DeleteRuntimeEnvRequest) (*pb.DeleteRuntimeEnvResponse, error)

func (*Server) DescribeRuntimeEnvs

func (*Server) ModifyRuntimeEnv

func (p *Server) ModifyRuntimeEnv(ctx context.Context, req *pb.ModifyRuntimeEnvRequest) (*pb.ModifyRuntimeEnvResponse, error)

Jump to

Keyboard shortcuts

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