personal_token

package
v0.0.0-...-bab46ce Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c *http.Client, url string, token string) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, req *Request) (Response, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string) error

func (*Client) List

type Request

type Request struct {
	sdk.CreatePersonalTokenRequest
}

type Response

type Response interface {
	GetUuid() string
	GetName() string
	GetKey() string
	GetUserId() float32
	GetCreated() time.Time
	GetExpiresAt() time.Time
	GetDescription() string
}

Jump to

Keyboard shortcuts

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