cluster_client_token

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterClientToken

func CreateClusterClientToken(ctx echo.Context) error

@Description Create a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token [post] @Param object body Create true "Create" @Success 200 {object} ClusterClientToken

func DeleteClusterClinetToken

func DeleteClusterClinetToken(ctx echo.Context) (err error)

@Description Delete a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token/{uuid} [delete] @Param uuid path string true "ClusterClientToken UUID" @Success 200

func ExpirationTime

func ExpirationTime(t time.Time) time.Time

func ExpireClusterClientToken

func ExpireClusterClientToken(ctx echo.Context) (err error)

@Description Expire a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token/{uuid}/expire [put] @Param uuid path string true "ClusterClientToken UUID" @Success 200 {object} ClusterClientToken

func FindClusterClientToken

func FindClusterClientToken(ctx echo.Context) error

@Description Find Cluster Client Tokens @Accept x-www-form-urlencoded @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token [get] @Param q query string false "query github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Param o query string false "order github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Param p query string false "paging github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Success 200 {array} ClusterClientToken

func GetClusterClientToken

func GetClusterClientToken(ctx echo.Context) (err error)

@Description Get a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token/{uuid} [get] @Param uuid path string true "ClusterClientToken Uuid" @Success 200 {object} ClusterClientToken

func IssuedAtTime

func IssuedAtTime(t time.Time) time.Time

func RefreshClusterClientToken

func RefreshClusterClientToken(ctx echo.Context) (err error)

@Description Refresh Time of a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token/{uuid}/refresh [put] @Param uuid path string true "ClusterClientToken UUID" @Success 200 {object} ClusterClientToken

func SetExpiration

func SetExpiration(t time.Time) time.Time

func UpdateClusterClientToken

func UpdateClusterClientToken(ctx echo.Context) (err error)

@Description Update a Cluster Client Token @Accept json @Produce json @Tags /api/v1/cluster_token @Router /api/v1/cluster_token/{uuid} [put] @Param uuid path string true "ClusterClientToken UUID" @Param object body Update true "Update" @Success 200 {object} ClusterClientToken

Types

type ClusterClientToken

type ClusterClientToken struct {
	Uuid           string    `json:"uuid"`
	Name           string    `json:"name"`
	Summary        *string   `json:"summary,omitempty"`
	ClusterUuid    string    `json:"cluster_uuid"`
	Token          string    `json:"token"`
	IssuedAtTime   time.Time `json:"issued_at_time"`
	ExpirationTime time.Time `json:"expiration_time"`
	Created        time.Time `json:"created"`
	Updated        time.Time `json:"updated"`
}

type Create

type Create struct {
	Uuid        *string `json:"uuid,omitempty"` // (optional)
	Name        string  `json:"name"`
	Summary     *string `json:"summary,omitempty"` // (optional)
	ClusterUuid string  `json:"cluster_uuid"`
	Token       *string `json:"token,omitempty"` // (optional)
}

type Update

type Update struct {
	Name           *string    `json:"name,omitempty"`            // (optional)
	Summary        *string    `json:"summary,omitempty"`         // (optional)
	Token          *string    `json:"token,omitempty"`           // (optional)
	IssuedAtTime   *time.Time `json:"issued_at_time,omitempty"`  // (optional)
	ExpirationTime *time.Time `json:"expiration_time,omitempty"` // (optional)
}

type UpdateRefresh

type UpdateRefresh struct {
	ExpirationTime *time.Time `json:"expiration_time,omitempty"` // (optional) (force)
}

Jump to

Keyboard shortcuts

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