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
Click to show internal directories.
Click to hide internal directories.