Documentation
¶
Index ¶
- Constants
- func BuildDeleteLabelFilterConditions(runtimeEnvId, labelKey, labelValue string) dbr.Builder
- func BuildInnerJoinTableString(baseTableName, tabelName, tableAliasName, column string) string
- func BuildSelectOneColumnString(tableName, tableAliasName, column string) string
- func BuildSelectRuntimeEnvIdBySelectorSql(selectorMap map[string][]string) string
- func BuildSqlEqString(tableName, column, value 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.RuntimeEnvLabel) map[string]string
- func SelectorStringToMap(selectorString string) (map[string][]string, error)
- func Serve(cfg *config.Config)
- type Server
- func (p *Server) AttachCredentialToRuntimeEnv(ctx context.Context, req *pb.AttachCredentialToRuntimeEnvRequset) (*pb.AttachCredentialToRuntimeEnvResponse, error)
- func (p *Server) CreateRuntimeEnv(ctx context.Context, req *pb.CreateRuntimeEnvRequest) (*pb.CreateRuntimeEnvResponse, error)
- func (p *Server) CreateRuntimeEnvCredential(ctx context.Context, req *pb.CreateRuntimeEnvCredentialRequset) (*pb.CreateRuntimeEnvCredentialResponse, error)
- func (p *Server) DeleteRuntimeEnv(ctx context.Context, req *pb.DeleteRuntimeEnvRequest) (*pb.DeleteRuntimeEnvResponse, error)
- func (p *Server) DeleteRuntimeEnvCredential(ctx context.Context, req *pb.DeleteRuntimeEnvCredentialRequset) (*pb.DeleteRuntimeEnvCredentialResponse, error)
- func (p *Server) DescribeRuntimeEnvCredentials(ctx context.Context, req *pb.DescribeRuntimeEnvCredentialsRequset) (*pb.DescribeRuntimeEnvCredentialsResponse, error)
- func (p *Server) DescribeRuntimeEnvs(ctx context.Context, req *pb.DescribeRuntimeEnvsRequest) (*pb.DescribeRuntimeEnvsResponse, error)
- func (p *Server) DetachCredentialFromRuntimeEnv(ctx context.Context, req *pb.DetachCredentialFromRuntimeEnvRequset) (*pb.DetachCredentialFromRuntimeEnvResponse, error)
- func (p *Server) ModifyRuntimeEnv(ctx context.Context, req *pb.ModifyRuntimeEnvRequest) (*pb.ModifyRuntimeEnvResponse, error)
- func (p *Server) ModifyRuntimeEnvCredential(ctx context.Context, req *pb.ModifyRuntimeEnvCredentialRequest) (*pb.ModifyRuntimeEnvCredentialResponse, error)
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 BuildSqlEqString ¶
func LabelMapDiff ¶
func LabelStructToMap ¶
func LabelStructToMap(labelStructs []*models.RuntimeEnvLabel) map[string]string
func SelectorStringToMap ¶
Types ¶
type Server ¶
func (*Server) AttachCredentialToRuntimeEnv ¶
func (p *Server) AttachCredentialToRuntimeEnv(ctx context.Context, req *pb.AttachCredentialToRuntimeEnvRequset) (*pb.AttachCredentialToRuntimeEnvResponse, error)
func (*Server) CreateRuntimeEnv ¶
func (p *Server) CreateRuntimeEnv(ctx context.Context, req *pb.CreateRuntimeEnvRequest) (*pb.CreateRuntimeEnvResponse, error)
func (*Server) CreateRuntimeEnvCredential ¶
func (p *Server) CreateRuntimeEnvCredential(ctx context.Context, req *pb.CreateRuntimeEnvCredentialRequset) (*pb.CreateRuntimeEnvCredentialResponse, error)
func (*Server) DeleteRuntimeEnv ¶
func (p *Server) DeleteRuntimeEnv(ctx context.Context, req *pb.DeleteRuntimeEnvRequest) (*pb.DeleteRuntimeEnvResponse, error)
func (*Server) DeleteRuntimeEnvCredential ¶
func (p *Server) DeleteRuntimeEnvCredential(ctx context.Context, req *pb.DeleteRuntimeEnvCredentialRequset) (*pb.DeleteRuntimeEnvCredentialResponse, error)
func (*Server) DescribeRuntimeEnvCredentials ¶
func (p *Server) DescribeRuntimeEnvCredentials(ctx context.Context, req *pb.DescribeRuntimeEnvCredentialsRequset) (*pb.DescribeRuntimeEnvCredentialsResponse, error)
func (*Server) DescribeRuntimeEnvs ¶
func (p *Server) DescribeRuntimeEnvs(ctx context.Context, req *pb.DescribeRuntimeEnvsRequest) (*pb.DescribeRuntimeEnvsResponse, error)
func (*Server) DetachCredentialFromRuntimeEnv ¶
func (p *Server) DetachCredentialFromRuntimeEnv(ctx context.Context, req *pb.DetachCredentialFromRuntimeEnvRequset) (*pb.DetachCredentialFromRuntimeEnvResponse, error)
func (*Server) ModifyRuntimeEnv ¶
func (p *Server) ModifyRuntimeEnv(ctx context.Context, req *pb.ModifyRuntimeEnvRequest) (*pb.ModifyRuntimeEnvResponse, error)
func (*Server) ModifyRuntimeEnvCredential ¶
func (p *Server) ModifyRuntimeEnvCredential(ctx context.Context, req *pb.ModifyRuntimeEnvCredentialRequest) (*pb.ModifyRuntimeEnvCredentialResponse, error)
Click to show internal directories.
Click to hide internal directories.