Documentation ¶
Overview ¶
Package overridable provides data types representing values in campaign specs that can be overridden for specific repositories.
Index ¶
- type Bool
- type BoolOrString
- func (bs BoolOrString) Equal(other BoolOrString) bool
- func (bs BoolOrString) MarshalJSON() ([]byte, error)
- func (bs *BoolOrString) UnmarshalJSON(data []byte) error
- func (bs *BoolOrString) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (bs *BoolOrString) Value(name string) interface{}
- func (bs *BoolOrString) ValueWithSuffix(name, suffix string) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool represents a bool value that can be modified on a per-repo basis.
func (Bool) MarshalJSON ¶
MarshalJSON encodes the Bool overridable to a json representation.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON unmarshalls a JSON value into a Bool.
func (*Bool) UnmarshalYAML ¶
UnmarshalYAML unmarshalls a YAML value into a Bool.
type BoolOrString ¶
type BoolOrString struct {
// contains filtered or unexported fields
}
BoolOrString is a set of rules that either evaluate to a string or a bool.
func FromBoolOrString ¶
func FromBoolOrString(v interface{}) BoolOrString
FromBoolOrString creates a BoolOrString representing a static, scalar value.
func (BoolOrString) Equal ¶
func (bs BoolOrString) Equal(other BoolOrString) bool
Equal tests two BoolOrStrings for equality, used in cmp.
func (BoolOrString) MarshalJSON ¶
func (bs BoolOrString) MarshalJSON() ([]byte, error)
MarshalJSON encodes the BoolOrString overridable to a json representation.
func (*BoolOrString) UnmarshalJSON ¶
func (bs *BoolOrString) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls a JSON value into a Publish.
func (*BoolOrString) UnmarshalYAML ¶
func (bs *BoolOrString) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshalls a YAML value into a Publish.
func (*BoolOrString) Value ¶
func (bs *BoolOrString) Value(name string) interface{}
Value returns the value for the given repository.
func (*BoolOrString) ValueWithSuffix ¶
func (bs *BoolOrString) ValueWithSuffix(name, suffix string) interface{}
ValueWithSuffix returns the value for the given repository and branch name.