deployments_handler

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 9 Imported by: 0

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