Versions in this module Expand all Collapse all v7 v7.0.0 Dec 12, 2022 Changes in this version + const HeaderKeyContinuationToken + const MediaTypeApplicationJson + const MediaTypeTextPlain + var SessionId = uuid.New().String() + func CreateBasicAuthHeaderValue(username, password string) string + func CreateBearerAuthHeaderValue(token string) string + type ApiResourceLocation struct + Area *string + Id *uuid.UUID + MaxVersion *string + MinVersion *string + ReleasedVersion *string + ResourceName *string + ResourceVersion *int + RouteTemplate *string + type ArgumentNilError struct + ArgumentName string + func (e ArgumentNilError) Error() string + type ArgumentNilOrEmptyError struct + ArgumentName string + func (e ArgumentNilOrEmptyError) Error() string + type Client struct + func NewClient(connection *Connection, baseUrl string) *Client + func NewClientWithOptions(connection *Connection, baseUrl string, options ...ClientOptionFunc) *Client + func (client *Client) CreateRequestMessage(ctx context.Context, httpMethod string, url string, apiVersion string, ...) (request *http.Request, err error) + func (client *Client) GenerateUrl(apiResourceLocation *ApiResourceLocation, routeValues map[string]string, ...) (request string) + func (client *Client) GetResourceAreas(ctx context.Context) (*[]ResourceAreaInfo, error) + func (client *Client) Send(ctx context.Context, httpMethod string, locationId uuid.UUID, ...) (response *http.Response, err error) + func (client *Client) SendRequest(request *http.Request) (response *http.Response, err error) + func (client *Client) UnmarshalBody(response *http.Response, v interface{}) (err error) + func (client *Client) UnmarshalCollectionBody(response *http.Response, v interface{}) (err error) + func (client *Client) UnmarshalCollectionJson(jsonValue []byte, v interface{}) (err error) + func (client *Client) UnwrapError(response *http.Response) (err error) + type ClientOptionFunc func(*Client) + func WithHTTPClient(httpClient *http.Client) ClientOptionFunc + type Connection struct + AuthorizationString string + BaseUrl string + ForceMsaPassThrough bool + SuppressFedAuthRedirect bool + Timeout *time.Duration + TlsConfig *tls.Config + UserAgent string + func NewAnonymousConnection(organizationUrl string) *Connection + func NewAtConnection(organizationUrl string, accessToken string) *Connection + func NewPatConnection(organizationUrl string, personalAccessToken string) *Connection + func (connection *Connection) GetClientByResourceAreaId(ctx context.Context, resourceAreaID uuid.UUID) (*Client, error) + func (connection *Connection) GetClientByUrl(baseUrl string) *Client + type ImproperError struct + Message *string + type InvalidApiVersion struct + ApiVersion string + func (e InvalidApiVersion) Error() string + type InvalidVersionStringError struct + func (e *InvalidVersionStringError) Error() string + type KeyValuePair struct + Key *interface{} + Value *interface{} + type LocationIdNotRegisteredError struct + LocationId uuid.UUID + Url string + func (e LocationIdNotRegisteredError) Error() string + type ResourceAreaIdNotRegisteredError struct + ResourceAreaId uuid.UUID + Url string + func (e ResourceAreaIdNotRegisteredError) Error() string + type ResourceAreaInfo struct + Id *uuid.UUID + LocationUrl *string + Name *string + type ServerSystemError struct + ClassName *string + InnerException *ServerSystemError + Message *string + func (e ServerSystemError) Error() string + type Time struct + Time time.Time + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) AsQueryParameter() string + func (t Time) Equal(u Time) bool + func (t Time) String() string + type Version struct + Major int + Minor int + func NewVersion(version string) (*Version, error) + func (version Version) CompareTo(compareToVersion Version) int + func (version Version) String() string + type VssJsonCollectionWrapper struct + Count *int + Value *[]interface{} + type WrappedError struct + CustomProperties *map[string]interface{} + ErrorCode *int + EventId *int + ExceptionId *string + InnerError *WrappedError + Message *string + StatusCode *int + TypeKey *string + TypeName *string + func (e WrappedError) Error() string + type WrappedImproperError struct + Count *int + Value *ImproperError