Documentation ¶
Index ¶
- Constants
- type ConfigDataQueryParams
- func (r *ConfigDataQueryParams) IsEnvNameProvided() bool
- func (r *ConfigDataQueryParams) IsRequestMadeForOneResource() bool
- func (r *ConfigDataQueryParams) IsResourceTypeConfigMap() bool
- func (r *ConfigDataQueryParams) IsResourceTypeSecret() bool
- func (r *ConfigDataQueryParams) IsValidConfigType() bool
- type ConfigDataResponse
- type ConfigProperty
- type ConfigPropertyIdentifier
- type ConfigStage
- type ConfigState
- type DeploymentAndCmCsConfig
- type DeploymentAndCmCsConfigDto
- func (r *DeploymentAndCmCsConfigDto) WithConfigMapData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
- func (r *DeploymentAndCmCsConfigDto) WithDeploymentTemplateData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
- func (r *DeploymentAndCmCsConfigDto) WithSecretData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
Constants ¶
View Source
const (
InvalidConfigTypeErr = "invalid config type provided, please send a valid config type"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigDataQueryParams ¶
type ConfigDataQueryParams struct { AppName string `schema:"appName"` EnvName string `schema:"envName"` ConfigType string `schema:"configType"` IdentifierId int `schema:"identifierId"` PipelineId int `schema:"pipelineId"` // req for fetching previous deployments data ResourceName string `schema:"resourceName"` ResourceType string `schema:"resourceType"` ResourceId int `schema:"resourceId"` UserId int32 `schema:"-"` }
func (*ConfigDataQueryParams) IsEnvNameProvided ¶
func (r *ConfigDataQueryParams) IsEnvNameProvided() bool
func (*ConfigDataQueryParams) IsRequestMadeForOneResource ¶
func (r *ConfigDataQueryParams) IsRequestMadeForOneResource() bool
func (*ConfigDataQueryParams) IsResourceTypeConfigMap ¶
func (r *ConfigDataQueryParams) IsResourceTypeConfigMap() bool
func (*ConfigDataQueryParams) IsResourceTypeSecret ¶
func (r *ConfigDataQueryParams) IsResourceTypeSecret() bool
FilterCriteria []string `schema:"filterCriteria"` OffSet int `schema:"offSet"` Limit int `schema:"limit"`
func (*ConfigDataQueryParams) IsValidConfigType ¶
func (r *ConfigDataQueryParams) IsValidConfigType() bool
type ConfigDataResponse ¶
type ConfigDataResponse struct {
ResourceConfig []*ConfigProperty `json:"resourceConfig"`
}
func NewConfigDataResponse ¶
func NewConfigDataResponse() *ConfigDataResponse
func (*ConfigDataResponse) WithResourceConfig ¶
func (r *ConfigDataResponse) WithResourceConfig(resourceConfig []*ConfigProperty) *ConfigDataResponse
type ConfigProperty ¶
type ConfigProperty struct { Id int `json:"id"` Name string `json:"name"` ConfigState ConfigState `json:"configState"` Type bean.ResourceType `json:"type"` ConfigStage ConfigStage `json:"configStage"` }
func NewConfigProperty ¶
func NewConfigProperty() *ConfigProperty
func (*ConfigProperty) GetIdentifier ¶
func (r *ConfigProperty) GetIdentifier() ConfigPropertyIdentifier
func (*ConfigProperty) GetKey ¶
func (r *ConfigProperty) GetKey() string
func (*ConfigProperty) IsConfigPropertyGlobal ¶
func (r *ConfigProperty) IsConfigPropertyGlobal() bool
type ConfigPropertyIdentifier ¶
type ConfigPropertyIdentifier struct { Name string `json:"name"` Type bean.ResourceType `json:"type"` }
type ConfigStage ¶
type ConfigStage string
const ( Env ConfigStage = "Env" Inheriting ConfigStage = "Inheriting" Overridden ConfigStage = "Overridden" )
type ConfigState ¶
type ConfigState string
const (
PublishedConfigState ConfigState = "PublishedOnly"
)
func (ConfigState) ToString ¶
func (r ConfigState) ToString() string
type DeploymentAndCmCsConfig ¶
type DeploymentAndCmCsConfig struct { ResourceType bean.ResourceType `json:"resourceType"` Data json.RawMessage `json:"data"` }
func NewDeploymentAndCmCsConfig ¶
func NewDeploymentAndCmCsConfig() *DeploymentAndCmCsConfig
func (*DeploymentAndCmCsConfig) WithConfigData ¶
func (r *DeploymentAndCmCsConfig) WithConfigData(data json.RawMessage) *DeploymentAndCmCsConfig
func (*DeploymentAndCmCsConfig) WithResourceType ¶
func (r *DeploymentAndCmCsConfig) WithResourceType(resourceType bean.ResourceType) *DeploymentAndCmCsConfig
type DeploymentAndCmCsConfigDto ¶
type DeploymentAndCmCsConfigDto struct { DeploymentTemplate *DeploymentAndCmCsConfig `json:"deploymentTemplate"` ConfigMapsData *DeploymentAndCmCsConfig `json:"configMapData"` SecretsData *DeploymentAndCmCsConfig `json:"secretsData"` IsAppAdmin bool `json:"isAppAdmin"` }
func NewDeploymentAndCmCsConfigDto ¶
func NewDeploymentAndCmCsConfigDto() *DeploymentAndCmCsConfigDto
func (*DeploymentAndCmCsConfigDto) WithConfigMapData ¶
func (r *DeploymentAndCmCsConfigDto) WithConfigMapData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
func (*DeploymentAndCmCsConfigDto) WithDeploymentTemplateData ¶
func (r *DeploymentAndCmCsConfigDto) WithDeploymentTemplateData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
func (*DeploymentAndCmCsConfigDto) WithSecretData ¶
func (r *DeploymentAndCmCsConfigDto) WithSecretData(data *DeploymentAndCmCsConfig) *DeploymentAndCmCsConfigDto
Click to show internal directories.
Click to hide internal directories.