Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Name string `json:"name,omitempty"` ID string `json:"id,omitempty"` FullName string `json:"fullName,omitempty"` IsOrg bool `json:"isOrg,omitempty"` IsAdmin bool `json:"isAdmin,omitempty"` IsActive bool `json:"isActive,omitempty"` IsImported bool `json:"isImported,omitempty"` }
Account describes the DTR account API response DTR calls them namespaces/orgs however they are accessed under an accounts API, keep that straight.
type Accounts ¶
type Accounts struct {
Accounts []Account `json:"accounts"`
}
Accounts describes the DTR accounts API response
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client to interact with DTR
type Repositories ¶
type Repositories struct {
Repositories []Repository `json:"repositories"`
}
Repositories describes the DTR repositories API response
type Repository ¶
type Repository struct { EnableManifestLists bool `json:"enableManifestLists,omitempty"` ID string `json:"id,omitempty"` ImmutableTags bool `json:"immutableTags,omitempty"` LongDescription string `json:"longDescription,omitempty"` Name string `json:"name"` Namespace string `json:"namespace"` NamespaceType string `json:"namespaceType,omitempty"` Pulls int64 `json:"pulls,omitempty"` Pushes int64 `json:"pushes,omitempty"` ScanOnPush bool `json:"scanOnPush,omitempty"` ShortDescription string `json:"shortDescription,omitempty"` TagLimit int64 `json:"tagLimit,omitempty"` Visibility string `json:"visibility,omitempty"` }
Repository describes a repository in DTR
type Tag ¶
type Tag struct { Author string `json:"author,omitempty"` CreatedAt string `json:"createdAt,omitempty"` Digest string `json:"digest,omitempty"` HashMismatch bool `json:"hashMismatch"` InNotary bool `json:"inNotary,omitempty"` Name string `json:"name"` UpdatedAt string `json:"updatedAt,omitempty"` }
Tag describes the DTR tag API response
Click to show internal directories.
Click to hide internal directories.