quay

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePermission

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

func DeleteRepository

func DeleteRepository(namespace string, name string, hostname string) error

func DeleteRepositoryNotification added in v0.6.0

func DeleteRepositoryNotification(namespace string, name string, uuid string, hostname string) error

func QuayURLParse added in v0.5.0

func QuayURLParse(hostname string) *url.URL

func TestRepositoryNotification added in v0.6.0

func TestRepositoryNotification(namespace string, name string, uuid string, hostname string) error

Types

type Config added in v0.6.4

type Config struct {
	QuayHostname string `envconfig:"QUAY_HOSTNAME"`
	QuayAPIToken string `envconfig:"QUAY_API_TOKEN"`
}

type NotificationConfig added in v0.6.0

type NotificationConfig struct {
	URL   string `json:"url,omitempty"`
	Email string `json:"email,omitempty"`
}

type NotificationEventConfig added in v0.6.0

type NotificationEventConfig struct {
	Level    string `json:"level,omitempty"`
	RefRegex string `json:"ref-regex,omitempty"`
}

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, hostname string) (QuayPermission, error)

type QuayPermissions

type QuayPermissions struct {
	Items []QuayPermission
}

func GetPermissions

func GetPermissions(namespace string, name string, accountType string, hostname 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, hostname string) (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, hostname string) (QuayRepository, error)

type RepositoryNotification added in v0.6.0

type RepositoryNotification struct {
	Title            string                 `json:"title,omitempty"`
	Event            string                 `json:"event,omitempty"`
	Method           string                 `json:"method,omitempty"`
	EventConfig      map[string]interface{} `json:"event_config,omitempty"`
	UUID             string                 `json:"uuid,omitempty"`
	NumberOfFailures float64                `json:"number_of_failures,omitempty"`
	Config           map[string]interface{} `json:"config,omitempty"`
}

func AddRepositoryNotification added in v0.6.0

func AddRepositoryNotification(namespace string, name string, request RequestRepositoryNotification, hostname string) (RepositoryNotification, error)

type RepositoryNotifications added in v0.6.0

type RepositoryNotifications struct {
	Items []RepositoryNotification
}

func ListRepositoryNotifications added in v0.6.0

func ListRepositoryNotifications(namespace string, name string, hostname string) (RepositoryNotifications, error)

type RequestRepository

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

type RequestRepositoryNotification added in v0.6.0

type RequestRepositoryNotification struct {
	Title       string                  `json:"title,omitempty"`
	Event       string                  `json:"event,omitempty"`
	Method      string                  `json:"method,omitempty"`
	Config      NotificationConfig      `json:"config,omitempty"`
	EventConfig NotificationEventConfig `json:"eventConfig,omitempty"`
}

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, hostname string) (ResponseRepository, error)

type ResponseRepositoryNotifications added in v0.6.0

type ResponseRepositoryNotifications struct {
	Items []map[string]interface{} `json:"notifications"`
}

Jump to

Keyboard shortcuts

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