Documentation ¶
Index ¶
- type SourceRepoer
- type SourceRepositoryService
- func (service *SourceRepositoryService) CreateSourceRepository(name, organisation, providerUrl string) error
- func (service *SourceRepositoryService) DeleteSourceRepository(name string) error
- func (service *SourceRepositoryService) GetSourceRepository(name string) (*v1.SourceRepository, error)
- func (service *SourceRepositoryService) ListSourceRepositories() (*v1.SourceRepositoryList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceRepoer ¶
type SourceRepoer interface { //CreateSourceRepository creates an application. If an application already exists, it will return an error CreateSourceRepository(name, organisation, providerUrl string) error // DeleteSourceRepository deletes an application DeleteSourceRepository(name string) error // GetSourceRepository gets an application, if it exists and returns an error otherwise GetSourceRepository(name string) (*v1.SourceRepository, error) // ListSourceRepositories gets a list of all the applications ListSourceRepositories() (*v1.SourceRepositoryList, error) }
SourceRepoer is responsible for storing information about Source Repositories (aka Applications, Projects) FIXME - note. At the moment, repos are only referred to by their name (ie, not the organisation) meaning you can't import both github.com/org1/myawesomeapp and github.com/org2/myawesomeapp.
func NewSourceRepositoryService ¶
func NewSourceRepositoryService(client versioned.Interface, namespace string) SourceRepoer
NewSourceRepositoryService creates a new Service for interacting with the Source Repository Custom Resource
type SourceRepositoryService ¶
type SourceRepositoryService struct {
// contains filtered or unexported fields
}
SourceRepositoryService is the implementation of SourceRepoer
func (*SourceRepositoryService) CreateSourceRepository ¶
func (service *SourceRepositoryService) CreateSourceRepository(name, organisation, providerUrl string) error
CreateSourceRepository creates a repo. If a repo already exists, it will return an error
func (*SourceRepositoryService) DeleteSourceRepository ¶
func (service *SourceRepositoryService) DeleteSourceRepository(name string) error
DeleteSourceRepository deletes a repo
func (*SourceRepositoryService) GetSourceRepository ¶
func (service *SourceRepositoryService) GetSourceRepository(name string) (*v1.SourceRepository, error)
GetSourceRepository gets repo, if it exists and returns an error otherwise
func (*SourceRepositoryService) ListSourceRepositories ¶
func (service *SourceRepositoryService) ListSourceRepositories() (*v1.SourceRepositoryList, error)
ListSourceRepositories gets a list of all the repos