bean

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (*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 (*DeploymentAndCmCsConfigDto) WithDeploymentTemplateData

func (*DeploymentAndCmCsConfigDto) WithSecretData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL