deployments_handler

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CreateBuildInput

type CreateBuildInput struct {
	server.BaseAuthInput
	Body struct {
		models.CreateDeploymentInput
	}
}

type CreateBuildOutput

type CreateBuildOutput struct {
	Body struct {
		Data *models.DeploymentResponse `json:"data"`
	}
}

type GetDeploymentInput

type GetDeploymentInput struct {
	server.BaseAuthInput
	models.GetDeploymentByIDInput
}

Get by ID

type GetDeploymentResponse

type GetDeploymentResponse struct {
	Body struct {
		Data *models.DeploymentResponse `json:"data"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) CreateDeployment

func (self *HandlerGroup) CreateDeployment(ctx context.Context, input *CreateBuildInput) (*CreateBuildOutput, error)

func (*HandlerGroup) CreateNewRedeployment

func (self *HandlerGroup) CreateNewRedeployment(ctx context.Context, input *RedeployInput) (*RedeployOutput, error)

func (*HandlerGroup) GetDeploymentByID

func (self *HandlerGroup) GetDeploymentByID(ctx context.Context, input *GetDeploymentInput) (*GetDeploymentResponse, error)

func (*HandlerGroup) ListDeployments

func (self *HandlerGroup) ListDeployments(ctx context.Context, input *ListDeploymentsInput) (*ListDeploymentsResponse, error)

type ListDeploymentResponseData

type ListDeploymentResponseData struct {
	Deployments       []*models.DeploymentResponse       `json:"deployments"`
	CurrentDeployment *models.DeploymentResponse         `json:"current_deployment,omitempty"`
	Metadata          *models.PaginationResponseMetadata `json:"metadata"`
}

type ListDeploymentsInput

type ListDeploymentsInput struct {
	server.BaseAuthInput
	models.GetDeploymentsInput
}

type ListDeploymentsResponse

type ListDeploymentsResponse struct {
	Body struct {
		Data *ListDeploymentResponseData `json:"data"`
	}
}

type RedeployInput

type RedeployInput struct {
	server.BaseAuthInput
	Body struct {
		models.RedeployExistingDeploymentInput
	}
}

type RedeployOutput

type RedeployOutput struct {
	Body struct {
		Data *models.DeploymentResponse `json:"data"`
	}
}

Jump to

Keyboard shortcuts

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