environments_handler

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 12 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 CreateEnvironmentInput

type CreateEnvironmentInput struct {
	server.BaseAuthInput
	Body *environment_service.CreateEnvironmentInput
}

type CreateEnvironmentResponse

type CreateEnvironmentResponse struct {
	Body struct {
		Data *models.EnvironmentResponse `json:"data"`
	}
}

type DeleteEnvironmentInput

type DeleteEnvironmentInput struct {
	server.BaseAuthInput
	Body struct {
		TeamID        uuid.UUID `json:"team_id" required:"true"`
		ProjectID     uuid.UUID `json:"project_id" required:"true"`
		EnvironmentID uuid.UUID `json:"environment_id" required:"true"`
	}
}

type DeleteEnvironmentResponse

type DeleteEnvironmentResponse struct {
	Body struct {
		Data server.DeletedResponse `json:"data"`
	}
}

type GetEnvironmentInput

type GetEnvironmentInput struct {
	server.BaseAuthInput
	ID        uuid.UUID `query:"id" required:"true"`
	TeamID    uuid.UUID `query:"team_id" required:"true"`
	ProjectID uuid.UUID `query:"project_id" required:"true"`
}

type GetEnvironmentOutput

type GetEnvironmentOutput struct {
	Body struct {
		Data *models.EnvironmentResponse `json:"data" nullable:"false"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) CreateEnvironment

func (self *HandlerGroup) CreateEnvironment(ctx context.Context, input *CreateEnvironmentInput) (*CreateEnvironmentResponse, error)

func (*HandlerGroup) DeleteEnvironment

func (self *HandlerGroup) DeleteEnvironment(ctx context.Context, input *DeleteEnvironmentInput) (*DeleteEnvironmentResponse, error)

func (*HandlerGroup) GetEnvironment

func (self *HandlerGroup) GetEnvironment(ctx context.Context, input *GetEnvironmentInput) (*GetEnvironmentOutput, error)

func (*HandlerGroup) ListEnvironments

func (self *HandlerGroup) ListEnvironments(ctx context.Context, input *ListEnvironmentInput) (*ListEnvironmentsOutput, error)

func (*HandlerGroup) UpdateEnvironment

func (self *HandlerGroup) UpdateEnvironment(ctx context.Context, input *UpdateEnvironmentInput) (*UpdateEnvironmentResponse, error)

type ListEnvironmentInput

type ListEnvironmentInput struct {
	server.BaseAuthInput
	TeamID    uuid.UUID `query:"team_id" required:"true"`
	ProjectID uuid.UUID `query:"project_id" required:"true"`
}

Get all in a project

type ListEnvironmentsOutput

type ListEnvironmentsOutput struct {
	Body struct {
		Data []*models.EnvironmentResponse `json:"data" nullable:"false"`
	}
}

type UpdateEnvironmentInput

type UpdateEnvironmentInput struct {
	server.BaseAuthInput
	Body *environment_service.UpdateEnvironmentInput
}

type UpdateEnvironmentResponse

type UpdateEnvironmentResponse struct {
	Body struct {
		Data *models.EnvironmentResponse `json:"data"`
	}
}

Jump to

Keyboard shortcuts

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