Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + var ConfigTypeDiceFile = "dice-file" + var ConfigTypeKV = "kv" + var DefaultOperationsForDiceFiles = pb.PipelineCmsConfigOperations + var DefaultOperationsForKV = pb.PipelineCmsConfigOperations + type Client struct + func (client *Client) BatchGetCmsNamespaces(pipelineSource string, namespaces []string, ops ...mysqlxorm.SessionOption) ([]PipelineCmsNs, error) + func (client *Client) BatchGetCmsNsConfigs(cmsNsIDs []uint64, ops ...mysqlxorm.SessionOption) ([]PipelineCmsConfig, error) + func (client *Client) DeleteCmsNsConfigs(cmsNs PipelineCmsNs, keys []string, ops ...mysqlxorm.SessionOption) error + func (client *Client) GetCmsNs(pipelineSource apistructs.PipelineSource, ns string, ...) (PipelineCmsNs, bool, error) + func (client *Client) GetCmsNsConfigs(cmsNs PipelineCmsNs, keys []string, ops ...mysqlxorm.SessionOption) ([]PipelineCmsConfig, error) + func (client *Client) IdempotentCreateCmsNs(pipelineSource apistructs.PipelineSource, ns string, ...) (PipelineCmsNs, error) + func (client *Client) IdempotentDeleteCmsNs(pipelineSource apistructs.PipelineSource, ns string, ...) error + func (client *Client) InsertOrUpdateCmsNsConfig(cmsNs PipelineCmsNs, config PipelineCmsConfig, ops ...mysqlxorm.SessionOption) error + func (client *Client) PrefixListNs(pipelineSource apistructs.PipelineSource, nsPrefix string, ...) ([]PipelineCmsNs, error) + func (client *Client) UpdateCmsNsConfigs(cmsNs PipelineCmsNs, configs []PipelineCmsConfig, ...) error + type PipelineCmsConfig struct + Encrypt *bool + Extra PipelineCmsConfigExtra + ID uint64 + Key string + NsID uint64 + TimeCreated *time.Time + TimeUpdated *time.Time + Type string + Value string + func (PipelineCmsConfig) TableName() string + func (c PipelineCmsConfig) BeforeSet(fieldName string, cell xorm.Cell) + func (c PipelineCmsConfig) Equal(another PipelineCmsConfig) bool + type PipelineCmsConfigExtra struct + Comment string + From string + Operations *pb.PipelineCmsConfigOperations + func (extra *PipelineCmsConfigExtra) FromDB(b []byte) error + func (extra *PipelineCmsConfigExtra) ToDB() ([]byte, error) + type PipelineCmsNs struct + ID uint64 + Ns string + PipelineSource apistructs.PipelineSource + TimeCreated *time.Time + TimeUpdated *time.Time + func (PipelineCmsNs) TableName() string