types

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseReportConfig

type DatabaseReportConfig struct {
	DatabaseName string              `json:"name"`
	Query        DatabaseReportQuery `json:"query"`
}

type DatabaseReportQuery

type DatabaseReportQuery struct {
	Stmt string `json:"stmt"`
}

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type ExpectedFieldComparisonValue

type ExpectedFieldComparisonValue struct {
	Name    string                `json:"name"`
	Path    string                `json:"path"`
	Default interface{}           `json:"default"`
	Value   *FieldComparisonValue `json:"value"`
}

type FailureDefinition

type FailureDefinition struct {
	CheckName string        `json:"checkName"`
	Report    *ReportConfig `json:"report"`
}

type FieldComparisonValue

type FieldComparisonValue struct {
	Path        string      `json:"path"`
	Static      interface{} `json:"static"`
	StaticInt64 int64       `json:"staticInt64"`
}

type FieldComparisons

type FieldComparisons struct {
	ExpectedValues  []*ExpectedFieldComparisonValue `json:"expectedValues"`
	Timeout         Duration                        `json:"timeout"`
	ProgressTimeout Duration                        `json:"progressTimeout"`
	PollInterval    Duration                        `json:"pollInterval"`
	ReportTimeout   *ReportConfig                   `json:"reportTimeout"`
	Failure         []*FailureDefinition            `json:"failure"`
}

type Metadata

type Metadata struct {
	Name string `json:"name"`
}

type ReportConfig

type ReportConfig struct {
	Database *DatabaseReportConfig `json:"database"`
}

type Rollout

type Rollout struct {
	APIVersion string       `json:"apiVersion"`
	Kind       string       `json:"kind"`
	Metadata   *Metadata    `json:"metadata"`
	Spec       *RolloutSpec `json:"spec"`
}

type RolloutGroup

type RolloutGroup struct {
	Name     string  `json:"name"`
	Parallel bool    `json:"parallel"`
	Steps    []*Step `json:"steps"`
}

type RolloutSpec

type RolloutSpec struct {
	Parallel bool            `json:"parallel"`
	Groups   []*RolloutGroup `json:"groups"`
}

type Step

type Step struct {
	Name            string               `json:"name"`
	Object          string               `json:"object"`
	Action          string               `json:"action"`
	Success         []*SuccessDefinition `json:"success"`
	ContinueOnError bool                 `json:"continueOnError"`
}

type SuccessDefinition

type SuccessDefinition struct {
	FieldComparisons *FieldComparisons    `json:"fieldComparisons"`
	Failure          []*FailureDefinition `json:"failure"`
}

Jump to

Keyboard shortcuts

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