Documentation
¶
Index ¶
Constants ¶
View Source
const (
IntentOwnerKey = "intent.yndd.io/owner"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppContext ¶
type AppContext interface {
WithLogging(log logging.Logger)
WithClient(client resource.ClientApplicator)
WithResourceFn(gvk string, typ GvkType, renderFn catalog.Fn, resFn ResourceFn, resListFn ResourceListFn)
Clone(name, namespace string) AppContext
AddInstance(gvk string, in *catalog.Input) error
Apply(ctx context.Context) error
}
func New ¶
func New(opts ...Option) AppContext
type Option ¶
type Option func(AppContext)
Option can be used to manipulate AppContext config.
func WithClient ¶
func WithClient(client resource.ClientApplicator) Option
WithClient initializes the client
func WithResourceFn ¶
func WithResourceFn(gvk string, typ GvkType, renderFn catalog.Fn, resFn ResourceFn, resListFn ResourceListFn) Option
WithResourceFn initializes the resourceFn per gvk
type ResourceFn ¶ added in v0.0.13
type ResourceListFn ¶ added in v0.0.13
type ResourceListFn func() resource.ManagedList
Click to show internal directories.
Click to hide internal directories.