environments_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: 12 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 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