Documentation ¶
Index ¶
- Constants
- Variables
- func Annotated(o Object, annotations map[string]string)
- func Extract(m interface{}) (map[string]Object, error)
- func Identity(o Object) string
- func IgnoreNamespace() func(m Object) Object
- func KindName(m Object) string
- type ErrBadExpr
- type Ignorer
- type KindSortOrder
- type List
- type Matcher
- type Matchers
- type NegMatcher
- type Object
- type ObjectList
- type ProcessFunc
Constants ¶
View Source
const ( LabelRelease = "release.octohelm.tech" AnnotationReleaseStage = "release.octohelm.tech/stage" )
Variables ¶
View Source
var ( InstallOrder = releaseutil.InstallOrder UninstallOrder = releaseutil.UninstallOrder )
Functions ¶
func IgnoreNamespace ¶
Types ¶
type ErrBadExpr ¶
type ErrBadExpr struct {
// contains filtered or unexported fields
}
ErrBadExpr occurs when the regexp compiling fails
func (ErrBadExpr) Error ¶
func (e ErrBadExpr) Error() string
type KindSortOrder ¶
type KindSortOrder = releaseutil.KindSortOrder
type List ¶
type List []Object
func ProcessManifests ¶
func ProcessManifests(list List, fns ...ProcessFunc) (processed List)
func ProcessResources ¶
func ProcessResources(r *releasev1alpha1.Release, exprs Matchers) (List, error)
type Matchers ¶
type Matchers []Matcher
Matchers is a collection of multiple expressions. A matcher may also implement Ignorer to explicitely ignore fields
func MustStrExps ¶
func (Matchers) IgnoreString ¶
func (Matchers) MatchString ¶
MatchString returns whether at least one expression (OR) matches the string
type NegMatcher ¶
type NegMatcher struct {
// contains filtered or unexported fields
}
func (NegMatcher) IgnoreString ¶
func (n NegMatcher) IgnoreString(s string) bool
func (NegMatcher) MatchString ¶
func (n NegMatcher) MatchString(s string) bool
type Object ¶
func NewForGroupVersionKind ¶
func NewForGroupVersionKind(gvk schema.GroupVersionKind) (Object, error)
func SortByKind ¶
func SortByKind(manifests []Object, ordering KindSortOrder) []Object
type ObjectList ¶
type ObjectList = client.ObjectList
func NewListForGroupVersionKind ¶
func NewListForGroupVersionKind(gvk schema.GroupVersionKind) (ObjectList, error)
func ObjectListFromRuntimeObject ¶
func ObjectListFromRuntimeObject(ro runtime.Object) (ObjectList, error)
type ProcessFunc ¶
func WithNamespace ¶
func WithNamespace(def string) ProcessFunc
func WithReleaseName ¶
func WithReleaseName(v string) ProcessFunc
Click to show internal directories.
Click to hide internal directories.