Documentation ¶
Index ¶
- func Apply(ctx context.Context, mc model.ClientSet, dp deptypes.Deployer, ...) error
- func CleanPlanFiles(ctx context.Context, mc model.ClientSet, sm *storage.Manager, ids ...object.ID) error
- func Create(ctx context.Context, mc model.ClientSet, opts CreateOptions) (*model.ResourceRun, error)
- type CreateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(ctx context.Context, mc model.ClientSet, dp deptypes.Deployer, run *model.ResourceRun) error
Apply the resource run in planned status.
func CleanPlanFiles ¶
func Create ¶
func Create(ctx context.Context, mc model.ClientSet, opts CreateOptions) (*model.ResourceRun, error)
Create creates a resource run.
Types ¶
type CreateOptions ¶
type CreateOptions struct { // StorageManager is the storage manager. StorageManager *storage.Manager // ResourceID is the ID of the resource. ResourceID object.ID // DeployerType is the type of the deployer that run uses. // +required: true DeployerType string // RunType the type of the run, create, delete, etc. Type types.RunType // ChangeComment is the comment of the change. ChangeComment string // Preview is the run need preview. Preview bool // Labels is the labels of the run. Labels map[string]string }
Click to show internal directories.
Click to hide internal directories.