Documentation ¶
Index ¶
- Constants
- Variables
- type Application
- func (h *Application) Bucket(id uint) (b *Bucket)
- func (h *Application) Create(r *api.Application) (err error)
- func (h *Application) Delete(id uint) (err error)
- func (h *Application) Get(id uint) (r *api.Application, err error)
- func (h *Application) List() (list []api.Application, err error)
- func (h *Application) Update(r *api.Application) (err error)
- type Bucket
- type BusinessService
- func (h *BusinessService) Create(r *api.BusinessService) (err error)
- func (h *BusinessService) Delete(id uint) (err error)
- func (h *BusinessService) Get(id uint) (r *api.BusinessService, err error)
- func (h *BusinessService) List() (list []api.BusinessService, err error)
- func (h *BusinessService) Update(r *api.BusinessService) (err error)
- type Client
- func (r *Client) BucketGet(source, destination string) (err error)
- func (r *Client) BucketPut(source, destination string) (err error)
- func (r *Client) Delete(path string, params ...Param) (err error)
- func (r *Client) FileGet(path, destination string) (err error)
- func (r *Client) FilePut(path, source string, object interface{}) (err error)
- func (r *Client) FileSend(path, method string, fields []Field, object interface{}) (err error)
- func (r *Client) Get(path string, object interface{}, params ...Param) (err error)
- func (r *Client) IsDir(path string, must bool) (b bool, err error)
- func (r *Client) Post(path string, object interface{}) (err error)
- func (r *Client) Put(path string, object interface{}, params ...Param) (err error)
- func (r *Client) Reset()
- func (r *Client) SetToken(token string)
- type Conflict
- type Dependency
- type Field
- type Identity
- type JobFunction
- func (h *JobFunction) Create(r *api.JobFunction) (err error)
- func (h *JobFunction) Delete(id uint) (err error)
- func (h *JobFunction) Get(id uint) (r *api.JobFunction, err error)
- func (h *JobFunction) List() (list []api.JobFunction, err error)
- func (h *JobFunction) Update(r *api.JobFunction) (err error)
- type NotFound
- type Param
- type Params
- type Path
- type Proxy
- type RichClient
- type SoftError
- type Stakeholder
- func (h *Stakeholder) Create(r *api.Stakeholder) (err error)
- func (h *Stakeholder) Delete(id uint) (err error)
- func (h *Stakeholder) Get(id uint) (r *api.Stakeholder, err error)
- func (h *Stakeholder) List() (list []api.Stakeholder, err error)
- func (h *Stakeholder) Update(r *api.Stakeholder) (err error)
- type StakeholderGroup
- func (h *StakeholderGroup) Create(r *api.StakeholderGroup) (err error)
- func (h *StakeholderGroup) Delete(id uint) (err error)
- func (h *StakeholderGroup) Get(id uint) (r *api.StakeholderGroup, err error)
- func (h *StakeholderGroup) List() (list []api.StakeholderGroup, err error)
- func (h *StakeholderGroup) Update(r *api.StakeholderGroup) (err error)
- type Tag
- type TagCategory
- func (h *TagCategory) Create(r *api.TagCategory) (err error)
- func (h *TagCategory) Delete(id uint) (err error)
- func (h *TagCategory) Get(id uint) (r *api.TagCategory, err error)
- func (h *TagCategory) List() (list []api.TagCategory, err error)
- func (h *TagCategory) Update(r *api.TagCategory) (err error)
- type Task
Constants ¶
const ( RetryLimit = 60 RetryDelay = time.Second * 10 )
Variables ¶
var ( Settings = &settings.Settings Log = logr.WithName("binding") )
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application API.
func (*Application) Bucket ¶
func (h *Application) Bucket(id uint) (b *Bucket)
Bucket returns the bucket API.
func (*Application) Create ¶
func (h *Application) Create(r *api.Application) (err error)
Create an Application.
func (*Application) Delete ¶
func (h *Application) Delete(id uint) (err error)
Delete an Application.
func (*Application) Get ¶
func (h *Application) Get(id uint) (r *api.Application, err error)
Get an Application by ID.
func (*Application) List ¶
func (h *Application) List() (list []api.Application, err error)
List Applications.
func (*Application) Update ¶
func (h *Application) Update(r *api.Application) (err error)
Update an Application.
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket API.
func (*Bucket) Delete ¶
Delete deletes content at the specified path. The path is relative to the bucket root.
type BusinessService ¶
type BusinessService struct {
// contains filtered or unexported fields
}
BusinessService API.
func (*BusinessService) Create ¶
func (h *BusinessService) Create(r *api.BusinessService) (err error)
Create a BusinessService.
func (*BusinessService) Delete ¶
func (h *BusinessService) Delete(id uint) (err error)
Delete a BusinessService.
func (*BusinessService) Get ¶
func (h *BusinessService) Get(id uint) (r *api.BusinessService, err error)
Get a BusinessService by ID.
func (*BusinessService) List ¶
func (h *BusinessService) List() (list []api.BusinessService, err error)
List BusinessServices.
func (*BusinessService) Update ¶
func (h *BusinessService) Update(r *api.BusinessService) (err error)
Update a BusinessService.
type Client ¶
type Client struct { // Retry limit. Retry int // Error Error error // contains filtered or unexported fields }
Client provides a REST client.
func (*Client) BucketGet ¶
BucketGet downloads a file/directory. The source (path) is relative to the bucket root.
func (*Client) BucketPut ¶
BucketPut uploads a file/directory. The destination (path) is relative to the bucket root.
func (*Client) IsDir ¶
IsDir determines if the path is a directory. The `must` specifies if the path must exist.
type Dependency ¶
type Dependency struct {
// contains filtered or unexported fields
}
Dependency API.
func (*Dependency) Create ¶
func (h *Dependency) Create(r *api.Dependency) (err error)
Create a Dependency.
func (*Dependency) Get ¶
func (h *Dependency) Get(id uint) (r *api.Dependency, err error)
Get a Dependency by ID.
func (*Dependency) List ¶
func (h *Dependency) List() (list []api.Dependency, err error)
List Dependencies.
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
Identity API.
type JobFunction ¶
type JobFunction struct {
// contains filtered or unexported fields
}
JobFunction API.
func (*JobFunction) Create ¶
func (h *JobFunction) Create(r *api.JobFunction) (err error)
Create a JobFunction.
func (*JobFunction) Delete ¶
func (h *JobFunction) Delete(id uint) (err error)
Delete a JobFunction.
func (*JobFunction) Get ¶
func (h *JobFunction) Get(id uint) (r *api.JobFunction, err error)
Get a JobFunction by ID.
func (*JobFunction) List ¶
func (h *JobFunction) List() (list []api.JobFunction, err error)
List JobFunctions.
func (*JobFunction) Update ¶
func (h *JobFunction) Update(r *api.JobFunction) (err error)
Update a JobFunction.
type RichClient ¶
type RichClient struct { // Resources APIs. Application Application Bucket Bucket BusinessService BusinessService Identity Identity JobFunction JobFunction Proxy Proxy Stakeholder Stakeholder StakeholderGroup StakeholderGroup Tag Tag TagCategory TagCategory Task Task Dependency Dependency // contains filtered or unexported fields }
The RichClient provides API integration.
func (*RichClient) Login ¶
func (r *RichClient) Login(user, password string) (err error)
type Stakeholder ¶
type Stakeholder struct {
// contains filtered or unexported fields
}
Stakeholder API.
func (*Stakeholder) Create ¶
func (h *Stakeholder) Create(r *api.Stakeholder) (err error)
Create a Stakeholder.
func (*Stakeholder) Delete ¶
func (h *Stakeholder) Delete(id uint) (err error)
Delete a Stakeholder.
func (*Stakeholder) Get ¶
func (h *Stakeholder) Get(id uint) (r *api.Stakeholder, err error)
Get a Stakeholder by ID.
func (*Stakeholder) List ¶
func (h *Stakeholder) List() (list []api.Stakeholder, err error)
List Stakeholders.
func (*Stakeholder) Update ¶
func (h *Stakeholder) Update(r *api.Stakeholder) (err error)
Update a Stakeholder.
type StakeholderGroup ¶
type StakeholderGroup struct {
// contains filtered or unexported fields
}
StakeholderGroup API.
func (*StakeholderGroup) Create ¶
func (h *StakeholderGroup) Create(r *api.StakeholderGroup) (err error)
Create a StakeholderGroup.
func (*StakeholderGroup) Delete ¶
func (h *StakeholderGroup) Delete(id uint) (err error)
Delete a StakeholderGroup.
func (*StakeholderGroup) Get ¶
func (h *StakeholderGroup) Get(id uint) (r *api.StakeholderGroup, err error)
Get a StakeholderGroup by ID.
func (*StakeholderGroup) List ¶
func (h *StakeholderGroup) List() (list []api.StakeholderGroup, err error)
List StakeholderGroups.
func (*StakeholderGroup) Update ¶
func (h *StakeholderGroup) Update(r *api.StakeholderGroup) (err error)
Update a StakeholderGroup.
type TagCategory ¶
type TagCategory struct {
// contains filtered or unexported fields
}
TagCategory API.
func (*TagCategory) Create ¶
func (h *TagCategory) Create(r *api.TagCategory) (err error)
Create a TagCategory.
func (*TagCategory) Delete ¶
func (h *TagCategory) Delete(id uint) (err error)
Delete a TagCategory.
func (*TagCategory) Get ¶
func (h *TagCategory) Get(id uint) (r *api.TagCategory, err error)
Get a TagCategory by ID.
func (*TagCategory) List ¶
func (h *TagCategory) List() (list []api.TagCategory, err error)
List TagCategories.
func (*TagCategory) Update ¶
func (h *TagCategory) Update(r *api.TagCategory) (err error)
Update a TagCategory.