Documentation ¶
Index ¶
- func ValidateServicesDefinitions(servicesDir string) error
- type Arguments
- type Badge
- type Console
- type FolderService
- func (f *FolderService) Badge(project, branch, commit, badge string) (Badge, error)
- func (f *FolderService) Meta() Meta
- func (f *FolderService) Name() string
- func (f *FolderService) New(project string, args map[string]interface{}) (uuid.UUID, error)
- func (f *FolderService) Run(id uuid.UUID) error
- func (f *FolderService) Validate(args map[string]interface{}) (Arguments, error)
- type Meta
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServicesDefinitions ¶
ValidateServicesDefinitions takes a root dir of services and inspect all services compose files
Types ¶
type FolderService ¶
type FolderService struct {
// contains filtered or unexported fields
}
func NewFolder ¶
func NewFolder(_path string) (*FolderService, error)
func (*FolderService) Badge ¶
func (f *FolderService) Badge(project, branch, commit, badge string) (Badge, error)
func (*FolderService) Meta ¶ added in v0.2.4
func (f *FolderService) Meta() Meta
Meta data about this service
func (*FolderService) Name ¶
func (f *FolderService) Name() string
type Meta ¶ added in v0.2.4
type Meta struct { Description string `yaml:"description"` UserDockerCompose bool `yaml:"user_docker_compose"` }
Meta contains metadata about the linked service
type Service ¶
type Service interface { // Validate the input coming from HTTP Body as a JSON, and fight against XSS //Validate is sync Validate(map[string]interface{}) (Arguments, error) // When the queue is ok, run async // Run can use the user's Sentry ID New(project string, args map[string]interface{}) (uuid.UUID, error) Run(id uuid.UUID) error // Build a Badge for a project/branch/commit and badge name Badge(project, branch, commit, badge string) (Badge, error) // TODO //Watch(id uuid.UUID) error // What's service name? Name() string Meta() Meta }
Click to show internal directories.
Click to hide internal directories.