overridable

package
v0.0.0-...-63c1a6e Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package overridable provides data types representing values in campaign specs that can be overridden for specific repositories.

Index

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 FromBool

func FromBool(b bool) Bool

FromBool creates a Bool representing a static, scalar value.

func (Bool) Equal

func (b Bool) Equal(other Bool) bool

Equal tests two Bools for equality, used in cmp.

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

MarshalJSON encodes the Bool overridable to a json representation.

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshalls a JSON value into a Bool.

func (*Bool) UnmarshalYAML

func (b *Bool) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshalls a YAML value into a Bool.

func (*Bool) Value

func (b *Bool) Value(name string) bool

Value returns the bool value for the given repository.

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.

Jump to

Keyboard shortcuts

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