provenance

package
v1.0.0-b5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceAreaId, _ = uuid.Parse("b40c1171-807a-493a-8f3f-5c26d5e2f5aa")

Functions

This section is empty.

Types

type Client

type Client interface {
	// [Preview API] Creates a session, a wrapper around a feed that can store additional metadata on the packages published to it.
	CreateSession(context.Context, CreateSessionArgs) (*SessionResponse, error)
}

func NewClient

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

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) CreateSession

func (client *ClientImpl) CreateSession(ctx context.Context, args CreateSessionArgs) (*SessionResponse, error)

[Preview API] Creates a session, a wrapper around a feed that can store additional metadata on the packages published to it.

type CreateSessionArgs

type CreateSessionArgs struct {
	// (required) The feed and metadata for the session
	SessionRequest *SessionRequest
	// (required) The protocol that the session will target
	Protocol *string
	// (optional) Project ID or project name
	Project *string
}

Arguments for the CreateSession function

type SessionRequest

type SessionRequest struct {
	// Generic property bag to store data about the session
	Data *map[string]string `json:"data,omitempty"`
	// The feed name or id for the session
	Feed *string `json:"feed,omitempty"`
	// The type of session If a known value is provided, the Data dictionary will be validated for the presence of properties required by that type
	Source *string `json:"source,omitempty"`
}

type SessionResponse

type SessionResponse struct {
	// The unique identifier for the session
	SessionId *string `json:"sessionId,omitempty"`
	// The name for the session
	SessionName *string `json:"sessionName,omitempty"`
}

Jump to

Keyboard shortcuts

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