Documentation ¶
Index ¶
- Constants
- Variables
- func BuildDeleteLabelFilterCondition(runtimeId, labelKey, labelValue string) dbr.Builder
- func CredentialJsonStringToString(provider, content string) string
- func CredentialStringToJsonString(provider, content string) string
- func LabelMapDiff(oldLabelMap, newLabelMap map[string]string) (additions, deletions map[string]string)
- func LabelStringToMap(labelString string) (map[string]string, error)
- func LabelStructToMap(labelStructs []*models.RuntimeLabel) map[string]string
- func SelectorStringToMap(selectorString string) (map[string][]string, error)
- func Serve(cfg *config.Config)
- func ValidateCredential(ctx context.Context, provider, url, credential, zone string) error
- func ValidateLabelKey(ctx context.Context, labelName string) error
- func ValidateLabelMapFmt(ctx context.Context, labelMap map[string][]string) error
- func ValidateLabelString(ctx context.Context, labelString string) error
- func ValidateLabelValue(ctx context.Context, labelValue string) error
- func ValidateName(ctx context.Context, name string) error
- func ValidateProvider(ctx context.Context, provider string) error
- func ValidateSelectorMapFmt(ctx context.Context, selectorMap map[string][]string) error
- func ValidateSelectorString(ctx context.Context, selectorString string) error
- func ValidateURL(ctx context.Context, url string) error
- func ValidateZone(ctx context.Context, zone string) error
- type Server
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateRuntime(ctx context.Context, req *pb.CreateRuntimeRequest) (*pb.CreateRuntimeResponse, error)
- func (p *Server) DeleteRuntimes(ctx context.Context, req *pb.DeleteRuntimesRequest) (*pb.DeleteRuntimesResponse, error)
- func (p *Server) DescribeRuntimeDetails(ctx context.Context, req *pb.DescribeRuntimesRequest) (*pb.DescribeRuntimeDetailsResponse, error)
- func (p *Server) DescribeRuntimeProviderZones(ctx context.Context, req *pb.DescribeRuntimeProviderZonesRequest) (*pb.DescribeRuntimeProviderZonesResponse, error)
- func (p *Server) DescribeRuntimes(ctx context.Context, req *pb.DescribeRuntimesRequest) (*pb.DescribeRuntimesResponse, error)
- func (p *Server) GetRuntimeStatistics(ctx context.Context, req *pb.GetRuntimeStatisticsRequest) (*pb.GetRuntimeStatisticsResponse, error)
- func (p *Server) ModifyRuntime(ctx context.Context, req *pb.ModifyRuntimeRequest) (*pb.ModifyRuntimeResponse, error)
Constants ¶
View Source
const ( RuntimeCredentialIdColumn = "runtime_credential_id" RuntimeCredentialContentColumn = "content" )
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 CredentialJsonStringToString ¶ added in v0.2.0
func CredentialStringToJsonString ¶ added in v0.2.0
func LabelMapDiff ¶
func LabelStructToMap ¶
func LabelStructToMap(labelStructs []*models.RuntimeLabel) map[string]string
func SelectorStringToMap ¶
func ValidateCredential ¶
func ValidateLabelMapFmt ¶
func ValidateSelectorMapFmt ¶
func ValidateSelectorString ¶
Types ¶
type Server ¶
type Server struct { }
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) DescribeRuntimeProviderZones ¶
func (p *Server) DescribeRuntimeProviderZones(ctx context.Context, req *pb.DescribeRuntimeProviderZonesRequest) (*pb.DescribeRuntimeProviderZonesResponse, 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 (p *Server) GetRuntimeStatistics(ctx context.Context, req *pb.GetRuntimeStatisticsRequest) (*pb.GetRuntimeStatisticsResponse, error)
func (*Server) ModifyRuntime ¶
func (p *Server) ModifyRuntime(ctx context.Context, req *pb.ModifyRuntimeRequest) (*pb.ModifyRuntimeResponse, error)
Click to show internal directories.
Click to hide internal directories.