controller

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateOrUpdateResource

func NewCreateOrUpdateResource(opts ctrl.Options) (ctrl.Controller, error)

NewCreateOrUpdateResource creates a new CreateOrUpdateResource controller.

func NewDeleteResource

func NewDeleteResource(opts ctrl.Options) (ctrl.Controller, error)

NewDeleteResource creates a new DeleteResource controller with the given options.

Types

type CreateOrUpdateResource

type CreateOrUpdateResource struct {
	ctrl.BaseController
}

CreateOrUpdateResource is the async operation controller to create or update Applications.Core/Containers resource.

func (*CreateOrUpdateResource) Run

Run checks if the resource exists, renders the resource, deploys the resource, applies the deployment output to the resource, deletes any resources that are no longer needed, and saves the resource.

type DeleteResource

type DeleteResource struct {
	ctrl.BaseController
}

DeleteResource is the async operation controller to delete Applications.Core/Containers resource.

func (*DeleteResource) Run

func (c *DeleteResource) Run(ctx context.Context, request *ctrl.Request) (ctrl.Result, error)

Run retrieves a resource from storage, parses its ID, gets its data model, converts it to a deployment data model, deletes the resource from the deployment processor, and deletes the resource from storage. It returns an error if any of these steps fail.

Jump to

Keyboard shortcuts

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