Documentation ¶
Index ¶
- func Bool2int(b bool) int
- type AQLResult
- type Client
- func (c *Client) CopyArtifact(ctx context.Context, srcRepo, srcPath, destRepo, destPath string, dryRun bool) (*MessagesResponse, error)
- func (c *Client) DeleteArtifact(ctx context.Context, repo, path string) (*MessagesResponse, error)
- func (c *Client) GetArtifactProperties(ctx context.Context, repository, path string) (*Properties, error)
- func (c *Client) GetLatestVersion(ctx context.Context, repository string, path string, version string) (string, error)
- func (c *Client) GetLatestVersionLessThan(ctx context.Context, repository string, path string, lessThanVersion string) (string, error)
- func (c *Client) MoveArtifact(ctx context.Context, srcRepo, srcPath, destRepo, destPath string, dryRun bool) (*MessagesResponse, error)
- type Config
- type ErrorResponse
- type InvalidRequestError
- type Message
- type MessagesResponse
- type MoveRequest
- type NotFoundError
- type Properties
- type ServiceUnavailableError
- type Status
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CopyArtifact ¶
func (*Client) DeleteArtifact ¶
func (*Client) GetArtifactProperties ¶
func (c *Client) GetArtifactProperties(ctx context.Context, repository, path string) (*Properties, error)
GetArtifactProperties for an Artifact.
func (*Client) GetLatestVersion ¶
func (*Client) GetLatestVersionLessThan ¶
func (c *Client) GetLatestVersionLessThan(ctx context.Context, repository string, path string, lessThanVersion string) (string, error)
GetLatestVersionLessThan Retrieves the latest version of an Artifact that is is less than the one specified TODO: pull logic out from below and document up here
func (*Client) MoveArtifact ¶
type ErrorResponse ¶
type ErrorResponse struct {
Errors []Status `json:"errors,omitempty"` // Individual errors
}
ErrorResponse reports one or more errors caused by an API request.
func (ErrorResponse) Error ¶
func (r ErrorResponse) Error() string
type InvalidRequestError ¶
type InvalidRequestError struct {
// contains filtered or unexported fields
}
func InvalidRequestErrorf ¶
func InvalidRequestErrorf(format string, a ...interface{}) InvalidRequestError
func (InvalidRequestError) Error ¶
func (e InvalidRequestError) Error() string
func (InvalidRequestError) IsEveError ¶
func (e InvalidRequestError) IsEveError() bool
type MessagesResponse ¶
type MessagesResponse struct {
Messages []Message `json:"messages"`
}
func (MessagesResponse) Error ¶
func (mr MessagesResponse) Error() string
func (MessagesResponse) ToString ¶
func (mr MessagesResponse) ToString() string
func (MessagesResponse) ToStrings ¶
func (mr MessagesResponse) ToStrings() []string
type MoveRequest ¶
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func NotFoundErrorf ¶
func NotFoundErrorf(format string, a ...interface{}) NotFoundError
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
func (NotFoundError) IsEveError ¶
func (e NotFoundError) IsEveError() bool
type Properties ¶
type Properties struct { Properties map[string][]string `json:"properties"` URI string `json:"uri"` }
func (Properties) Property ¶
func (p Properties) Property(key string) string
type ServiceUnavailableError ¶
type ServiceUnavailableError struct {
// contains filtered or unexported fields
}
func ServiceUnavailableErrorf ¶
func ServiceUnavailableErrorf(format string, a ...interface{}) ServiceUnavailableError
func (ServiceUnavailableError) Error ¶
func (e ServiceUnavailableError) Error() string
func (ServiceUnavailableError) IsEveError ¶
func (e ServiceUnavailableError) IsEveError() bool
type Status ¶
type Status struct { Status int `json:"status"` // Validation error status code Message string `json:"message"` // Message describing the error. Errors with Code == "custom" will always have this set. }
Status is the individual error provided by the API
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.