sourcerepository

package
v1.3.749 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis
matchers
Code generated by pegomock.
Code generated by pegomock.

Jump to

Keyboard shortcuts

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