Documentation ¶
Index ¶
- Variables
- type HelmExpectation
- type ListRunner
- type Option
- func WithDescription(description string) Option
- func WithListClientBuilder(builder func() (ListRunner, error)) Option
- func WithLogger(logger func(format string, args ...interface{})) Option
- func WithReleaseCondition(condition types.Condition) Option
- func WithReleaseListCondition(condition types.Condition) Option
- func WithRemoved(removed bool) Option
- func WithValueCondition(condition types.Condition) Option
- func WithValueListCondition(condition types.Condition) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DeployedCondition = jq.Equality(".info.status", "deployed") FailedCondition = jq.Equality(".info.status", "failed") )
Functions ¶
This section is empty.
Types ¶
type HelmExpectation ¶
type HelmExpectation struct {
// contains filtered or unexported fields
}
func MustNew ¶
func MustNew(name, namespace string, opts ...Option) *HelmExpectation
MustNew creates a new helm expectation. It panics if the expectation cannot be created.
func MustNewAbsent ¶
func MustNewAbsent(name, namespace string, opts ...Option) *HelmExpectation
NewPresent creates a new helm expectation that expects the release to be present.
func NewExpectation ¶
func NewExpectation(pattern, namespace string, opts ...Option) (*HelmExpectation, error)
NewExpectation creates a new helm expectation.
func (*HelmExpectation) AsGomegaSubject ¶
func (e *HelmExpectation) AsGomegaSubject() func(context.Context) (interface{}, error)
func (*HelmExpectation) Description ¶
func (he *HelmExpectation) Description() string
func (*HelmExpectation) Id ¶
func (he *HelmExpectation) Id() string
Id implements types.Expectation.
func (*HelmExpectation) ToGomegaMatcher ¶
func (e *HelmExpectation) ToGomegaMatcher() gomega.GomegaMatcher
type ListRunner ¶
type Option ¶
type Option func(*HelmExpectation)
func WithDescription ¶
func WithListClientBuilder ¶
func WithListClientBuilder(builder func() (ListRunner, error)) Option
func WithLogger ¶
func WithReleaseCondition ¶
func WithRemoved ¶
WithRemoved specifies whether the release is expected to be present or not.
func WithValueCondition ¶
func WithValueListCondition ¶
Click to show internal directories.
Click to hide internal directories.