quay

package
v0.0.0-...-96b2297 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ParallelImageFetch   = 10
	ImageQueueBufferSize = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NonSecret

type NonSecret struct {
	QuayNamespace   string `json:"quay_namespace" validate:"required,min=2"`
	QuayRegistryURL string `json:"quay_registry_url" validate:"required,url"`
}

type RegistryQuay

type RegistryQuay struct {
	Name         string    `json:"name" validate:"required,min=2,max=64"`
	NonSecret    NonSecret `json:"non_secret"`
	Secret       Secret    `json:"secret"`
	RegistryType string    `json:"registry_type" validate:"required"`
}

func New

func New(data []byte) (*RegistryQuay, error)

func (*RegistryQuay) DecryptExtras

func (d *RegistryQuay) DecryptExtras(aes encryption.AES) error

func (*RegistryQuay) DecryptSecret

func (d *RegistryQuay) DecryptSecret(aes encryption.AES) error

func (*RegistryQuay) EncryptExtras

func (d *RegistryQuay) EncryptExtras(aes encryption.AES) error

func (*RegistryQuay) EncryptSecret

func (d *RegistryQuay) EncryptSecret(aes encryption.AES) error

func (*RegistryQuay) FetchImagesFromRegistry

func (d *RegistryQuay) FetchImagesFromRegistry(ctx context.Context) ([]model.IngestedContainerImage, error)

func (*RegistryQuay) GetExtras

func (d *RegistryQuay) GetExtras() map[string]interface{}

func (*RegistryQuay) GetNamespace

func (d *RegistryQuay) GetNamespace() string

func (*RegistryQuay) GetRegistryType

func (d *RegistryQuay) GetRegistryType() string

func (*RegistryQuay) GetSecret

func (d *RegistryQuay) GetSecret() map[string]interface{}

getters

func (*RegistryQuay) GetUsername

func (d *RegistryQuay) GetUsername() string

func (*RegistryQuay) IsValidCredential

func (d *RegistryQuay) IsValidCredential() bool

func (*RegistryQuay) ValidateFields

func (d *RegistryQuay) ValidateFields(v *validator.Validate) error

type RepoDetails

type RepoDetails struct {
	URL        string
	Token      string
	Password   string
	NameSpace  string
	Repository Repositories
}

type RepoTagsResp

type RepoTagsResp struct {
	Namespace      string `json:"namespace"`
	Name           string `json:"name"`
	Kind           string `json:"kind"`
	Description    string `json:"description"`
	IsPublic       bool   `json:"is_public"`
	IsOrganization bool   `json:"is_organization"`
	IsStarred      bool   `json:"is_starred"`
	StatusToken    string `json:"status_token"`
	TrustEnabled   bool   `json:"trust_enabled"`
	TagExpirationS int    `json:"tag_expiration_s"`
	IsFreeAccount  bool   `json:"is_free_account"`
	State          string `json:"state"`
	Tags           Tags   `json:"tags"`
	CanWrite       bool   `json:"can_write"`
	CanAdmin       bool   `json:"can_admin"`
}

type ReposResp

type ReposResp struct {
	Repositories []Repositories `json:"repositories"`
	NextPage     string         `json:"next_page"`
}

type Repositories

type Repositories struct {
	Namespace    string `json:"namespace"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	IsPublic     bool   `json:"is_public"`
	Kind         string `json:"kind"`
	State        string `json:"state"`
	LastModified int    `json:"last_modified"`
	IsStarred    bool   `json:"is_starred"`
}

type Secret

type Secret struct {
	QuayAccessToken string `json:"quay_access_token" validate:"omitempty,min=2"`
}

type Tag

type Tag struct {
	Name           string `json:"name"`
	Size           int    `json:"size"`
	LastModified   string `json:"last_modified"`
	ManifestDigest string `json:"manifest_digest"`
}

type Tags

type Tags map[string]Tag

Jump to

Keyboard shortcuts

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