Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct { ResourceData map[string]interface{} `yaml:",inline" json:",inline"` Kind Kind `yaml:"kind" json:"kind"` }
Object is used for intermediary marshalling of types that are not currently defined.
Note that the `ResourceData` struct tag uses `,inline`, which ensures undefined fields are persisted when decoding/encoding.
type Pipeline ¶
type Pipeline struct { ResourceData map[string]interface{} `yaml:",inline" json:",inline"` Kind Kind `yaml:"kind" json:"kind"` Type string `yaml:"type,omitempty" json:"type,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty"` NodeSelector map[string]string `yaml:"node_selector,omitempty" json:"node_selector,omitempty"` Tolerations []Toleration `yaml:"tolerations,omitempty" json:"tolerations,omitempty"` }
Pipeline represents a Drone `pipeline` object.
Note that the `ResourceData` struct tag uses `,inline`, which ensures undefined fields are persisted when decoding/encoding.
type Secret ¶
type Secret struct { ResourceData map[string]interface{} `yaml:",inline" json:",inline"` Kind Kind `yaml:"kind" json:"kind"` Type string `yaml:"type,omitempty" json:"type,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty"` }
Secret represents a Drone `secret` object.
Note that the `ResourceData` struct tag uses `,inline`, which ensures undefined fields are persisted when decoding/encoding.
type Toleration ¶
type Toleration struct {
Key, Operator, Value, Effect string
}
Click to show internal directories.
Click to hide internal directories.