dtr

package
v0.0.0-...-66c98c8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

func NewClient

func NewClient(registry *model.Registry) *Client

NewClient creates a new DTR client.

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

Jump to

Keyboard shortcuts

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