quay

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const QuayURLBase = "https://quay.io/api/v1/"

Variables

This section is empty.

Functions

func DeletePermission

func DeletePermission(namespace string, name string, accountType string, account string) error

func DeleteRepository

func DeleteRepository(namespace string, name string) error

Types

type QuayPermission

type QuayPermission struct {
	Name string `json:"name"`
	Role string `json:"role"`
}

func AddPermission

func AddPermission(namespace string, name string, accountType string, account string, role string) (QuayPermission, error)

type QuayPermissions

type QuayPermissions struct {
	Items []QuayPermission
}

func GetPermissions

func GetPermissions(namespace string, name string, accountType string) (QuayPermissions, error)

type QuayPermissionsResponse

type QuayPermissionsResponse struct {
	Items map[string]interface{} `json:"permissions"`
}

type QuayRepositories added in v0.2.0

type QuayRepositories struct {
	Items []ResponseRepository
}

func ListRepository added in v0.2.0

func ListRepository(namespace string, public bool) (QuayRepositories, error)

type QuayRepository

type QuayRepository struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

func CreateRepository

func CreateRepository(namespace string, name string, visibility string) (QuayRepository, error)

type RequestRepository

type RequestRepository struct {
	Namespace   string `json:"namespace"`
	Visibility  string `json:"visibility"`
	Repository  string `json:"repository"`
	Description string `json:"description"`
}

type ResponseRepositories added in v0.2.0

type ResponseRepositories struct {
	Items []map[string]interface{} `json:"repositories"`
}

type ResponseRepository

type ResponseRepository struct {
	Namespace   string `json:"namespace"`
	IsPublic    bool   `json:"is_public"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

func GetRepository

func GetRepository(namespace string, name string) (ResponseRepository, error)

Jump to

Keyboard shortcuts

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