Documentation
¶
Index ¶
- func CloneExperiences(client api.ClientWithResponsesInterface, projectID uuid.UUID, ...)
- func NormalizeExperiences(experiences []Experience) error
- func SyncExperiences(client api.ClientWithResponsesInterface, projectID uuid.UUID, ...)
- type DatabaseState
- type EnvironmentVariable
- type Experience
- type ExperienceID
- 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 NormalizeExperiences ¶ added in v0.29.0
func NormalizeExperiences(experiences []Experience) error
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 = api.ExperienceSyncExperience
type ExperienceID ¶
type ExperienceID = api.ExperienceID
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 = api.ExperienceSyncConfig
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 TestSuite ¶
type TestSuite = api.ExperienceSyncTestSuite
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.