Documentation ¶
Index ¶
Constants ¶
View Source
const DOWNLOAD_TIMEOUT = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(name string, installationPath string, config map[string]interface{}) (repository.Repository, error)
Types ¶
type Auth ¶
type Auth struct { // Type of the authentication Type AuthType // Config of the authentication Config AuthConfig }
type AuthConfig ¶
type AuthConfig interface { // Get the authentication header Header() string }
type AuthFactory ¶
type AuthFactory struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { // URL of the file to download // Example "https://my-file-server.com/{app-name}-{app-version}.tar.gz" URL string // Auth configuration Auth *Auth }
type Repository ¶
func (*Repository) InstallApp ¶
func (*Repository) Name ¶
func (r *Repository) Name() string
Click to show internal directories.
Click to hide internal directories.