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