Documentation ¶
Index ¶
- Constants
- Variables
- func BuildDeleteLabelFilterCondition(runtimeId, labelKey, labelValue string) dbr.Builder
- 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 RuntimeCredentialJsonStringToString(provider, content string) string
- func RuntimeCredentialStringToJsonString(provider, content string) string
- func SelectorStringToMap(selectorString string) (map[string][]string, error)
- func Serve(cfg *config.Config)
- func ValidateCredential(provider, url, credential, zone string) error
- func ValidateLabelKey(labelName string) error
- func ValidateLabelMapFmt(labelMap map[string][]string) error
- func ValidateLabelString(labelString string) error
- func ValidateLabelValue(labelValue string) error
- func ValidateName(name string) error
- func ValidateProvider(provider string) error
- func ValidateSelectorMapFmt(selectorMap map[string][]string) error
- func ValidateSelectorString(selectorString string) error
- func ValidateURL(url string) error
- func ValidateZone(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" 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 LabelMapDiff ¶
func LabelStructToMap ¶
func LabelStructToMap(labelStructs []*models.RuntimeLabel) map[string]string
func SelectorStringToMap ¶
func ValidateCredential ¶
func ValidateLabelKey ¶
func ValidateLabelMapFmt ¶
func ValidateLabelString ¶
func ValidateLabelValue ¶
func ValidateName ¶
func ValidateProvider ¶
func ValidateSelectorMapFmt ¶
func ValidateSelectorString ¶
func ValidateURL ¶
func ValidateZone ¶
Types ¶
type Server ¶
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.