Documentation
¶
Index ¶
- func GetAllsHandler(rootCtx RootContext, cmdCtx GetAllHandlerContext) ([]resource.Resource, []error)
- func GetKindHandler(kind schema.Kind, rootCtx RootContext, cmdCtx GetKindHandlerContext) ([]resource.Resource, []error)
- func IsDirectory(path string) (bool, error)
- func IsKindIdentifiedByNameAndVCluster(res schema.Kind) bool
- func IsKindInterceptor(res schema.Kind) bool
- func LoadResourcesFromFiles(filePaths []string, strict, recursiveFolder bool) ([]resource.Resource, error)
- func ResourceForPath(path string, strict, recursiveFolder bool) ([]resource.Resource, error)
- type ApplyHandler
- type ApplyHandlerContext
- type ApplyResult
- type DeleteByVClusterAndNameHandlerContext
- type DeleteFileHandlerContext
- type DeleteHandler
- func (h *DeleteHandler) HandleByVClusterAndName(kind schema.Kind, cmdCtx DeleteByVClusterAndNameHandlerContext) error
- func (h *DeleteHandler) HandleFromFiles(cmdCtx DeleteFileHandlerContext) ([]DeleteResult, error)
- func (h *DeleteHandler) HandleFromList(resources []resource.Resource, stateRef *model.State, ...) ([]DeleteResult, error)
- func (h *DeleteHandler) HandleInterceptor(kind schema.Kind, cmdCtx DeleteInterceptorHandlerContext) error
- func (h *DeleteHandler) HandleKind(kind schema.Kind, cmdCtx DeleteKindHandlerContext) error
- type DeleteInterceptorHandlerContext
- type DeleteKindHandlerContext
- type DeleteResult
- type GetAllHandlerContext
- type GetKindHandlerContext
- type RootContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllsHandler ¶
func GetAllsHandler(rootCtx RootContext, cmdCtx GetAllHandlerContext) ([]resource.Resource, []error)
func GetKindHandler ¶
func GetKindHandler(kind schema.Kind, rootCtx RootContext, cmdCtx GetKindHandlerContext) ([]resource.Resource, []error)
func IsDirectory ¶
IsDirectory checks if the given path is a directory.
func IsKindInterceptor ¶
Types ¶
type ApplyHandler ¶
type ApplyHandler struct {
// contains filtered or unexported fields
}
func NewApplyHandler ¶
func NewApplyHandler(rootCtx RootContext) *ApplyHandler
func (*ApplyHandler) Handle ¶
func (h *ApplyHandler) Handle(cmdCtx ApplyHandlerContext) ([]ApplyResult, error)
type ApplyHandlerContext ¶
type ApplyResult ¶
type DeleteHandler ¶
type DeleteHandler struct {
// contains filtered or unexported fields
}
func NewDeleteHandler ¶
func NewDeleteHandler(rootCtx RootContext) *DeleteHandler
func (*DeleteHandler) HandleByVClusterAndName ¶
func (h *DeleteHandler) HandleByVClusterAndName(kind schema.Kind, cmdCtx DeleteByVClusterAndNameHandlerContext) error
func (*DeleteHandler) HandleFromFiles ¶
func (h *DeleteHandler) HandleFromFiles(cmdCtx DeleteFileHandlerContext) ([]DeleteResult, error)
func (*DeleteHandler) HandleFromList ¶
func (h *DeleteHandler) HandleFromList(resources []resource.Resource, stateRef *model.State, ignoreMissing, dryRun, debug bool) ([]DeleteResult, error)
func (*DeleteHandler) HandleInterceptor ¶
func (h *DeleteHandler) HandleInterceptor(kind schema.Kind, cmdCtx DeleteInterceptorHandlerContext) error
func (*DeleteHandler) HandleKind ¶
func (h *DeleteHandler) HandleKind(kind schema.Kind, cmdCtx DeleteKindHandlerContext) error
type DeleteResult ¶
type GetAllHandlerContext ¶
type GetKindHandlerContext ¶
type RootContext ¶
type RootContext struct {
Catalog schema.Catalog
Strict bool
Debug *bool
// contains filtered or unexported fields
}
func NewRootContext ¶
func (*RootContext) ConsoleAPIClient ¶
func (c *RootContext) ConsoleAPIClient() *client.Client
func (*RootContext) GatewayAPIClient ¶
func (c *RootContext) GatewayAPIClient() *client.GatewayClient
Click to show internal directories.
Click to hide internal directories.