repository

package
v0.0.0-...-ead0699 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(url, imageRef, username, password string) error

url is git url or container image name

func FindCreds

func FindCreds(repoName string) (string, string)

func GetData

func GetData() ([]byte, error)

func LoadData

func LoadData(d *[]byte) error

func Remove

func Remove(repoName string) error

func Update

func Update(url, image, username, password string) error

Types

type RepoData

type RepoData struct {
	ImageRef  string `json:"image_ref"`
	URL       string `json:"url"`
	Reachable bool   `json:"reachable"`
}

func List

func List() []RepoData

type Repository

type Repository struct {
	URL, ImageRef, Secret string
	Reachable             bool
}

func FindRepo

func FindRepo(name string) (*Repository, bool)

func (*Repository) GetRegistryAuth

func (r *Repository) GetRegistryAuth() (string, error)

Jump to

Keyboard shortcuts

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