resourcerun

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionDeleteRequest

type CollectionDeleteRequest struct {
	model.ResourceRunDeleteInputs `path:",inline" json:",inline"`
}

func (*CollectionDeleteRequest) Validate

func (r *CollectionDeleteRequest) Validate() error

type CollectionFieldQuery

type CollectionFieldQuery struct {
	QueryID      object.ID `query:"id"`
	QueryType    string    `query:"type"`
	QueryStatus  string    `query:"status"`
	QueryPreview *bool     `query:"preview"`
	QueryLabels  []string  `query:"labels"`
}

func (*CollectionFieldQuery) Queries

func (q *CollectionFieldQuery) Queries() (queries []predicate.ResourceRun, ok bool)

type CollectionGetRequest

type CollectionGetRequest struct {
	model.ResourceRunQueryInputs `path:",inline" query:",inline"`

	runtime.RequestCollection[
		predicate.ResourceRun, resourcerun.OrderOption,
	] `query:",inline"`

	Stream *runtime.RequestUnidiStream

	CollectionFieldQuery `query:",inline"`
	Rollback             bool `query:"rollback"`
}

func (*CollectionGetRequest) SetStream

func (r *CollectionGetRequest) SetStream(stream runtime.RequestUnidiStream)

type CollectionGetResponse

type CollectionGetResponse = []*model.ResourceRunOutput

type GetRequest

type GetRequest = model.ResourceRunQueryInput

type GetResponse

type GetResponse = *model.ResourceRunOutput

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func Handle

func Handle(mc model.ClientSet, kc *rest.Config, sm *storage.Manager) Handler

func (Handler) CollectionDelete

func (h Handler) CollectionDelete(req CollectionDeleteRequest) error

func (Handler) CollectionGet

func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)

func (Handler) Get

func (h Handler) Get(req GetRequest) (GetResponse, error)

func (Handler) Kind

func (Handler) Kind() string

func (Handler) RouteApply

func (h Handler) RouteApply(req RouteApplyRequest) error

RouteApply apply the planned run.

func (Handler) RouteGetDiffLatest

func (h Handler) RouteGetDiffLatest(req RouteGetDiffLatestRequest) (*RouteGetDiffLatestResponse, error)

RouteGetDiffLatest get the run with the service latest run diff.

func (Handler) RouteGetDiffPrevious

RouteGetDiffPrevious get the run with the service previous run diff.

func (Handler) RouteGetPlan

func (h Handler) RouteGetPlan(req RouteGetPlanRequest) error

func (Handler) RouteGetTerraformStates

func (h Handler) RouteGetTerraformStates(
	req RouteGetTerraformStatesRequest,
) (RouteGetTerraformStatesResponse, error)

RouteGetTerraformStates get the terraform states of the service run deployment.

func (Handler) RouteLog

func (h Handler) RouteLog(req RouteLogRequest) error

func (Handler) RouteSetPlan

func (h Handler) RouteSetPlan(req RouteSetPlanRequest) error

func (Handler) RouteUpdateTerraformStates

func (h Handler) RouteUpdateTerraformStates(
	req RouteUpdateTerraformStatesRequest,
) (err error)

RouteUpdateTerraformStates update the terraform states of the service run deployment.

type RouteApplyRequest

type RouteApplyRequest struct {
	model.ResourceRunQueryInput `path:",inline"`

	Approve bool `json:"approve,default=false"`
	// contains filtered or unexported fields
}

func (*RouteApplyRequest) Validate

func (r *RouteApplyRequest) Validate() error

type RouteGetDiffLatestRequest

type RouteGetDiffLatestRequest struct {
	model.ResourceRunQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

type RouteGetDiffLatestResponse

type RouteGetDiffLatestResponse struct {
	Old RunDiff `json:"old"`
	New RunDiff `json:"new"`
}

type RouteGetDiffPreviousRequest

type RouteGetDiffPreviousRequest struct {
	model.ResourceRunQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

type RouteGetDiffPreviousResponse

type RouteGetDiffPreviousResponse struct {
	Old RunDiff `json:"old"`
	New RunDiff `json:"new"`
}

type RouteGetPlanRequest

type RouteGetPlanRequest struct {
	model.ResourceRunQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

type RouteGetTerraformStatesRequest

type RouteGetTerraformStatesRequest struct {
	model.ResourceRunQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

type RouteGetTerraformStatesResponse

type RouteGetTerraformStatesResponse = json.RawMessage

type RouteLogRequest

type RouteLogRequest struct {
	model.ResourceRunQueryInput `path:",inline"`

	JobType string `query:"jobType,omitempty"`

	Stream *runtime.RequestUnidiStream
	// contains filtered or unexported fields
}

func (*RouteLogRequest) SetStream

func (r *RouteLogRequest) SetStream(stream runtime.RequestUnidiStream)

func (*RouteLogRequest) Validate

func (r *RouteLogRequest) Validate() error

type RouteSetPlanRequest

type RouteSetPlanRequest struct {
	model.ResourceRunQueryInput `path:",inline"`

	JsonPlan *multipart.FileHeader `form:"jsonplan"`
	Plan     *multipart.FileHeader `form:"plan"`
	// contains filtered or unexported fields
}

func (*RouteSetPlanRequest) Validate

func (r *RouteSetPlanRequest) Validate() error

type RouteUpdateTerraformStatesRequest

type RouteUpdateTerraformStatesRequest struct {
	model.ResourceRunQueryInput `path:",inline"`

	json.RawMessage `path:"-" json:",inline"`
	// contains filtered or unexported fields
}

type RunDiff

type RunDiff struct {
	TemplateName       string          `json:"templateName"`
	TemplateVersion    string          `json:"templateVersion"`
	Attributes         property.Values `json:"attributes"`
	ComputedAttributes property.Values `json:"computedAttributes"`
}

Jump to

Keyboard shortcuts

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