Help us shape the future of Go! Take the 2026 Go Developer Survey

feedtoken

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceAreaId, _ = uuid.Parse("cdeb6c7d-6b25-4d6f-b664-c2e3ede202e8")

Functions

This section is empty.

Types

type Client

type Client interface {
	// [Preview API] Get a time-limited session token representing the current user, with permissions scoped to the read/write of Artifacts.
	GetPersonalAccessToken(context.Context, GetPersonalAccessTokenArgs) (*FeedSessionToken, error)
}

func NewClient

func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error)

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) GetPersonalAccessToken

func (client *ClientImpl) GetPersonalAccessToken(ctx context.Context, args GetPersonalAccessTokenArgs) (*FeedSessionToken, error)

[Preview API] Get a time-limited session token representing the current user, with permissions scoped to the read/write of Artifacts.

type FeedSessionToken

type FeedSessionToken struct {
	Token   *string           `json:"token,omitempty"`
	ValidTo *azuredevops.Time `json:"validTo,omitempty"`
}

A cut-down version of SessionToken that just has what FeedSessionTokenController needs to serve the UI and which actually generates a TypeScript type for the UI to use

type GetPersonalAccessTokenArgs

type GetPersonalAccessTokenArgs struct {
	// (optional)
	FeedName *string
}

Arguments for the GetPersonalAccessToken function

Jump to

Keyboard shortcuts

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