target

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTargets

func ListTargets(ctx *gin.Context)

ListTargets godoc

@Tags			target
@Summary		List targets
@Description	List targets
@Produce		json
@Success		200	{array}	ProviderTarget
@Router			/target [get]

@id				ListTargets

func RemoveTarget

func RemoveTarget(ctx *gin.Context)

RemoveTarget godoc

@Tags			target
@Summary		Remove a target
@Description	Remove a target
@Param			target	path	string	true	"Target name"
@Success		204
@Router			/target/{target} [delete]

@id				RemoveTarget

func SetDefaultTarget added in v0.40.0

func SetDefaultTarget(ctx *gin.Context)

SetDefaultTarget godoc

@Tags			target
@Summary		Set target to default
@Description	Set target to default
@Param			target	path	string	true	"Target name"
@Success		200
@Router			/target/{target}/set-default [patch]

@id				SetDefaultTarget

func SetTarget

func SetTarget(ctx *gin.Context)

SetTarget godoc

@Tags			target
@Summary		Set a target
@Description	Set a target
@Param			target	body	CreateProviderTargetDTO	true	"Target to set"
@Success		201
@Router			/target [put]

@id				SetTarget

Types

This section is empty.

Jump to

Keyboard shortcuts

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