condition

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnMissingObjectCondition

type OnMissingObjectCondition struct {
	// contains filtered or unexported fields
}

func OnMissingObject

func OnMissingObject(name string) *OnMissingObjectCondition

func (*OnMissingObjectCondition) MatchesCondition

func (c *OnMissingObjectCondition) MatchesCondition(ctx component.ConditionContext) bool

type OnMissingTypeCondition

type OnMissingTypeCondition struct {
	// contains filtered or unexported fields
}

func OnMissingType

func OnMissingType[T any]() *OnMissingTypeCondition

func (*OnMissingTypeCondition) MatchesCondition

func (c *OnMissingTypeCondition) MatchesCondition(ctx component.ConditionContext) bool

type OnObjectCondition

type OnObjectCondition struct {
	// contains filtered or unexported fields
}

func OnObject

func OnObject(name string) *OnObjectCondition

func (*OnObjectCondition) MatchesCondition

func (c *OnObjectCondition) MatchesCondition(ctx component.ConditionContext) bool

type OnProfileCondition

type OnProfileCondition struct {
	// contains filtered or unexported fields
}

func OnProfile

func OnProfile(profiles ...string) *OnProfileCondition

func (*OnProfileCondition) MatchesCondition

func (c *OnProfileCondition) MatchesCondition(ctx component.ConditionContext) bool

type OnPropertyCondition

type OnPropertyCondition struct {
	// contains filtered or unexported fields
}

func OnProperty

func OnProperty(name string) *OnPropertyCondition

func (*OnPropertyCondition) HavingValue

func (c *OnPropertyCondition) HavingValue(value any) *OnPropertyCondition

func (*OnPropertyCondition) MatchIfMissing

func (c *OnPropertyCondition) MatchIfMissing(matchIfMissing bool) *OnPropertyCondition

func (*OnPropertyCondition) MatchesCondition

func (c *OnPropertyCondition) MatchesCondition(ctx component.ConditionContext) bool

type OnTypeCondition

type OnTypeCondition struct {
	// contains filtered or unexported fields
}

func OnType

func OnType[T any]() *OnTypeCondition

func (*OnTypeCondition) MatchesCondition

func (c *OnTypeCondition) MatchesCondition(ctx component.ConditionContext) bool

Jump to

Keyboard shortcuts

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