Documentation ¶
Index ¶
Constants ¶
View Source
const ( //source flags GITHUB = "github" GITLAB = "gitlab" DOCKERHUB = "dockerhub" MYDOCKERHUB = "mydockerhub" CIHOOK = "CI" TYPE = "type" TOKEN = "token" USERNAME = "username" STATUS = "unbound" // IMAGE indicates that the repo is an image IMAGE = "image" // Git indicates that the repo is a GIT GIT = "git" // oneclick indicates that an oneclick image exists ONECLICK = "oneclick" )
Variables ¶
This section is empty.
Functions ¶
func ForImageName ¶
This shall be under type Tosca {} and a global method
func Register ¶
func Register(name string, manager RepositoryManager)
Register registers a new repository manager, that can be later configured and used.
Types ¶
type Repo ¶
Repository represents a repository managed by the manager.
func (Repo) GetShortName ¶
func (Repo) GetUserName ¶
type Repository ¶
type RepositoryManager ¶
type RepositoryManager interface { CreateHook(r Repository) (string, error) RemoveHook(r Repository) error }
RepositoryManager represents a manager of application repositories.
func Manager ¶
func Manager(managerName string) RepositoryManager
Manager returns the current configured manager, as defined in the configuration file.
Click to show internal directories.
Click to hide internal directories.