Documentation ¶
Index ¶
- func ContainsConfigs(expected ...models.ConfigItem) types.GomegaMatcher
- func EqualConfigs(expected ...models.ConfigItem) types.GomegaMatcher
- type ConfigGenerator
- func (generator *ConfigGenerator) Destroy(db *gorm.DB) error
- func (generator *ConfigGenerator) GenerateConfigItem(configType, status string, deletedAt *time.Time, parent *models.ConfigItem, ...) models.ConfigItem
- func (generator *ConfigGenerator) GenerateKubernetes()
- func (generator *ConfigGenerator) Link(parent, child models.ConfigItem)
- func (generator *ConfigGenerator) Save(db *gorm.DB) error
- type ConfigTypeHealthRequirements
- type ConfigTypeRequirements
- type ContainsConfigItems
- type EqualsConfigItems
- type Generated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsConfigs ¶ added in v1.0.561
func ContainsConfigs(expected ...models.ConfigItem) types.GomegaMatcher
func EqualConfigs ¶
func EqualConfigs(expected ...models.ConfigItem) types.GomegaMatcher
Types ¶
type ConfigGenerator ¶ added in v1.0.535
type ConfigGenerator struct {
Namespaces, Nodes ConfigTypeRequirements
PodsPerReplicaSet, ReplicaSetPerDeployment, DeploymentPerNamespace ConfigTypeRequirements
Tags map[string]string
Generated Generated
// contains filtered or unexported fields
}
func (*ConfigGenerator) Destroy ¶ added in v1.0.535
func (generator *ConfigGenerator) Destroy(db *gorm.DB) error
func (*ConfigGenerator) GenerateConfigItem ¶ added in v1.0.535
func (generator *ConfigGenerator) GenerateConfigItem(configType, status string, deletedAt *time.Time, parent *models.ConfigItem, req ConfigTypeRequirements) models.ConfigItem
func (*ConfigGenerator) GenerateKubernetes ¶ added in v1.0.535
func (generator *ConfigGenerator) GenerateKubernetes()
func (*ConfigGenerator) Link ¶ added in v1.0.535
func (generator *ConfigGenerator) Link(parent, child models.ConfigItem)
type ConfigTypeHealthRequirements ¶ added in v1.0.535
type ConfigTypeHealthRequirements struct { HealthyPercentage int UnhealthyPercentage int WarningPercentage int UnknownPercentage int }
func (*ConfigTypeHealthRequirements) IsEmpty ¶ added in v1.0.535
func (t *ConfigTypeHealthRequirements) IsEmpty() bool
func (*ConfigTypeHealthRequirements) IsValid ¶ added in v1.0.535
func (t *ConfigTypeHealthRequirements) IsValid() bool
func (*ConfigTypeHealthRequirements) SetDefaults ¶ added in v1.0.535
func (t *ConfigTypeHealthRequirements) SetDefaults()
type ConfigTypeRequirements ¶ added in v1.0.535
type ConfigTypeRequirements struct { Status ConfigTypeHealthRequirements Count int Deleted int NumChangesPerConfig int NumInsightsPerConfig int }
type ContainsConfigItems ¶ added in v1.0.561
type ContainsConfigItems struct {
Expected []models.ConfigItem
}
func (*ContainsConfigItems) FailureMessage ¶ added in v1.0.561
func (matcher *ContainsConfigItems) FailureMessage(actual interface{}) string
func (*ContainsConfigItems) Match ¶ added in v1.0.561
func (matcher *ContainsConfigItems) Match(actual interface{}) (bool, error)
func (*ContainsConfigItems) NegatedFailureMessage ¶ added in v1.0.561
func (matcher *ContainsConfigItems) NegatedFailureMessage(actual interface{}) string
type EqualsConfigItems ¶
type EqualsConfigItems struct {
Expected []models.ConfigItem
}
func (*EqualsConfigItems) FailureMessage ¶
func (matcher *EqualsConfigItems) FailureMessage(actual interface{}) string
func (*EqualsConfigItems) Match ¶
func (matcher *EqualsConfigItems) Match(actual interface{}) (bool, error)
func (*EqualsConfigItems) NegatedFailureMessage ¶
func (matcher *EqualsConfigItems) NegatedFailureMessage(actual interface{}) string
type Generated ¶ added in v1.0.535
type Generated struct { Configs []models.ConfigItem Changes []models.ConfigChange Analysis []models.ConfigAnalysis Relationships []models.ConfigRelationship }
func (*Generated) ConfigByTypes ¶ added in v1.0.535
func (t *Generated) ConfigByTypes(configType ...string) []models.ConfigItem
Click to show internal directories.
Click to hide internal directories.