Documentation ¶
Index ¶
- Constants
- Variables
- func CheckRuntimePermission(ctx context.Context, resourceId string) (*models.Runtime, error)
- func CheckRuntimesPermission(ctx context.Context, resourceIds []string) ([]*models.Runtime, error)
- func CredentialJsonStringToString(provider, content string) string
- func CredentialStringToJsonString(provider, content string) string
- func SelectorStringToMap(selectorString string) (map[string][]string, error)
- func Serve(cfg *config.Config)
- func ValidateCredential(ctx context.Context, runtimeId, 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 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) Builder(ctx context.Context, req interface{}) interface{}
- 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" )
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 CheckRuntimesPermission ¶ added in v0.2.3
func CredentialJsonStringToString ¶ added in v0.2.0
func CredentialStringToJsonString ¶ added in v0.2.0
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.