Documentation
¶
Index ¶
- func CloneExperiences(client api.ClientWithResponsesInterface, projectID uuid.UUID, ...)
- func SyncExperiences(client api.ClientWithResponsesInterface, projectID uuid.UUID, ...)
- type DatabaseState
- type EnvironmentVariable
- type Experience
- type ExperienceID
- type ExperienceIDWrapper
- type ExperienceMatch
- type ExperienceSyncConfig
- type ExperienceUpdates
- type Result
- type SystemID
- type SystemSet
- type SystemUpdates
- type TagID
- type TagSet
- type TagUpdates
- type TestSuite
- type TestSuiteID
- type TestSuiteUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneExperiences ¶
func CloneExperiences(client api.ClientWithResponsesInterface, projectID uuid.UUID, configPath string)
func SyncExperiences ¶
Types ¶
type DatabaseState ¶
type DatabaseState struct {
ExperiencesByName map[string]*Experience
TagSetsByName map[string]TagSet
SystemSetsByName map[string]SystemSet
TestSuiteIDsByName map[string]TestSuiteID
}
type EnvironmentVariable ¶
type EnvironmentVariable = api.EnvironmentVariable
type Experience ¶
type Experience struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Locations []string `yaml:"locations,omitempty"`
Tags []string `yaml:"tags,omitempty"` // Only used on read from config
Systems []string `yaml:"systems,omitempty"` // Only used on read from config
Profile *string `yaml:"profile,omitempty"` // Optional
ExperienceID *ExperienceIDWrapper `yaml:"experience_id,omitempty"` // Optional
EnvironmentVariables *[]EnvironmentVariable `yaml:"environment_variables,omitempty"` // Optional
CacheExempt bool `yaml:"cache_exempt,omitempty"`
ContainerTimeoutSeconds *int32 `yaml:"container_timeout_seconds,omitempty"` // Optional
Archived bool `yaml:"-"` // Shouldn't be in the config
}
type ExperienceID ¶
type ExperienceID = api.ExperienceID
type ExperienceIDWrapper ¶
type ExperienceIDWrapper struct {
ID ExperienceID
}
func (ExperienceIDWrapper) MarshalYAML ¶
func (u ExperienceIDWrapper) MarshalYAML() (interface{}, error)
func (*ExperienceIDWrapper) UnmarshalYAML ¶
func (u *ExperienceIDWrapper) UnmarshalYAML(value *yaml.Node) error
type ExperienceMatch ¶
type ExperienceMatch struct {
Original *Experience
New *Experience
}
A single pair of matched old and new experiences. See the documentation for matchExperiences below.
type ExperienceSyncConfig ¶
type ExperienceSyncConfig struct {
Experiences []*Experience `yaml:"experiences,omitempty"`
TestSuites []TestSuite `yaml:"managed_test_suites,omitempty"`
ManagedExperienceTags []string `yaml:"managed_experience_tags,omitempty"`
}
type ExperienceUpdates ¶
type ExperienceUpdates struct {
MatchedExperiencesByNewName map[string]ExperienceMatch
TagUpdatesByName map[string]*TagUpdates
SystemUpdatesByName map[string]*SystemUpdates
TestSuiteUpdates []TestSuiteUpdate
}
A struct describing the changes we need to make to update the current database state to the state described by the given configuration.
type SystemSet ¶
type SystemSet struct {
Name string
SystemID SystemID
ExperienceIDs map[ExperienceID]struct{}
}
type SystemUpdates ¶
type SystemUpdates struct {
Name string
SystemID SystemID
Additions []*Experience
}
Struct encoding all the updates that need to be made for a single system.
type TagID ¶
type TagID = api.ExperienceTagID
type TagSet ¶
type TagSet struct {
Name string
TagID TagID
ExperienceIDs map[ExperienceID]struct{}
}
type TagUpdates ¶
type TagUpdates struct {
Name string
TagID TagID
Additions []*Experience
Removals []*Experience
}
Struct encoding all the updates that need to be made for a single tag.
type TestSuiteID ¶
type TestSuiteID = api.TestSuiteID
type TestSuiteUpdate ¶
type TestSuiteUpdate struct {
Name string
TestSuiteID TestSuiteID
Experiences []*Experience
}
Struct encoding all the updates that need to be made for a single test suite.
Click to show internal directories.
Click to hide internal directories.