Documentation ¶
Index ¶
- Constants
- Variables
- type C
- func (c *C) Artifact(projectId string, hash string) (*generated.Artifact, error)
- func (c *C) ArtifactCreate(projectId string, hash string, src string) (err error)
- func (c *C) ArtifactDelete(projectId string, hash string) error
- func (c *C) ArtifactExists(projectId string, hash string) (bool, error)
- func (c *C) Health() bool
- func (c *C) Project(projectId string) (*generated.ExtendedProject, error)
- func (c *C) ProjectCreate(project generated.ProjectCreate) (*generated.ExtendedProject, error)
- func (c *C) ProjectDelete(projectId string) error
- func (c *C) ProjectExists(name string) (bool, error)
- func (c *C) Projects() ([]generated.Project, error)
Constants ¶
View Source
const (
HeaderBobExists = "Bob-Exists"
)
Variables ¶
View Source
var ( ErrCantMakeRequest = fmt.Errorf("failed to make the request") ErrInvalidStatusCode = fmt.Errorf("failed request, invalid status code") ErrCantReadResponse = fmt.Errorf("can not read response from server") ErrInvalidJsonResponse = fmt.Errorf("invalid response from the server") ErrItemNotFound = fmt.Errorf("desired Item not found") )
Functions ¶
This section is empty.
Types ¶
type C ¶
type C struct {
// contains filtered or unexported fields
}
func (*C) ArtifactCreate ¶
func (*C) ProjectCreate ¶
func (c *C) ProjectCreate(project generated.ProjectCreate) (*generated.ExtendedProject, error)
func (*C) ProjectDelete ¶
Click to show internal directories.
Click to hide internal directories.