Documentation ¶
Index ¶
- Constants
- Variables
- type Analysis
- type AppFacts
- func (h *AppFacts) Delete(name string) (err error)
- func (h *AppFacts) Get(name string, value interface{}) (err error)
- func (h *AppFacts) List() (facts api.FactMap, err error)
- func (h *AppFacts) Replace(facts api.FactMap) (err error)
- func (h *AppFacts) Set(name string, value interface{}) (err error)
- func (h *AppFacts) Source(source string)
- type AppTags
- type Application
- func (h *Application) Analysis(id uint) (a Analysis)
- func (h *Application) Bucket(id uint) (b *BucketContent)
- func (h *Application) Create(r *api.Application) (err error)
- func (h *Application) Delete(id uint) (err error)
- func (h *Application) Facts(id uint) (f AppFacts)
- func (h *Application) FindIdentity(id uint, kind string) (r *api.Identity, found bool, 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) Tags(id uint) (tg AppTags)
- func (h *Application) Update(r *api.Application) (err error)
- type Bucket
- type BucketContent
- 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) FilePost(path, source string, object interface{}) (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 File
- type Filter
- 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
- func (h *Proxy) Create(r *api.Proxy) (err error)
- func (h *Proxy) Delete(id uint) (err error)
- func (h *Proxy) Find(kind string) (r *api.Proxy, err error)
- func (h *Proxy) Get(id uint) (r *api.Proxy, err error)
- func (h *Proxy) List() (list []api.Proxy, err error)
- func (h *Proxy) Update(r *api.Proxy) (err error)
- type RestError
- type Review
- func (h *Review) Copy(reviewID uint, appID uint) (err error)
- func (h *Review) Create(r *api.Review) (err error)
- func (h *Review) Delete(id uint) (err error)
- func (h *Review) Get(id uint) (r *api.Review, err error)
- func (h *Review) List() (list []api.Review, err error)
- func (h *Review) Update(r *api.Review) (err error)
- type RichClient
- type RuleSet
- func (h *RuleSet) Create(r *api.RuleSet) (err error)
- func (h *RuleSet) Delete(id uint) (err error)
- func (h *RuleSet) Find(filter Filter) (list []api.RuleSet, err error)
- func (h *RuleSet) Get(id uint) (r *api.RuleSet, err error)
- func (h *RuleSet) List() (list []api.RuleSet, err error)
- func (h *RuleSet) Update(r *api.RuleSet) (err error)
- type Setting
- 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
- func (h *Tag) Create(r *api.Tag) (err error)
- func (h *Tag) Delete(id uint) (err error)
- func (h *Tag) Ensure(wanted *api.Tag) (err error)
- func (h *Tag) Find(name string, category uint) (r *api.Tag, found bool, err error)
- func (h *Tag) Get(id uint) (r *api.Tag, err error)
- func (h *Tag) List() (list []api.Tag, err error)
- func (h *Tag) Update(r *api.Tag) (err error)
- type TagCategory
- func (h *TagCategory) Create(r *api.TagCategory) (err error)
- func (h *TagCategory) Delete(id uint) (err error)
- func (h *TagCategory) Ensure(wanted *api.TagCategory) (err error)
- func (h *TagCategory) Find(name string) (r *api.TagCategory, found bool, 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 Target
- 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 Analysis ¶ added in v0.3.0
type Analysis struct {
// contains filtered or unexported fields
}
Analysis API.
type AppFacts ¶ added in v0.3.0
type AppFacts struct {
// contains filtered or unexported fields
}
AppFacts sub-resource API. Provides association management of facts.
type AppTags ¶ added in v0.3.0
type AppTags struct {
// contains filtered or unexported fields
}
AppTags sub-resource API. Provides association management of tags to applications by name.
func (*AppTags) Delete ¶ added in v0.3.0
Delete ensures the tag is not associated with the application.
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application API.
func (*Application) Analysis ¶ added in v0.3.0
func (h *Application) Analysis(id uint) (a Analysis)
Analysis returns the analysis API.
func (*Application) Bucket ¶
func (h *Application) Bucket(id uint) (b *BucketContent)
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) Facts ¶ added in v0.3.0
func (h *Application) Facts(id uint) (f AppFacts)
Facts returns the tags API.
func (*Application) FindIdentity ¶ added in v0.3.0
FindIdentity by kind.
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) Tags ¶ added in v0.3.0
func (h *Application) Tags(id uint) (tg AppTags)
Tags returns the tags API.
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) Content ¶ added in v0.3.0
func (h *Bucket) Content(id uint) (b *BucketContent)
Content returns content API.
type BucketContent ¶ added in v0.3.0
type BucketContent struct {
// contains filtered or unexported fields
}
BucketContent API.
func (*BucketContent) Delete ¶ added in v0.3.0
func (h *BucketContent) Delete(path string) (err error)
Delete deletes content at the specified root. The source is relative to the bucket root.
func (*BucketContent) Get ¶ added in v0.3.0
func (h *BucketContent) Get(source, destination string) (err error)
Get reads from the bucket. The source (root) is relative to the bucket root.
func (*BucketContent) Put ¶ added in v0.3.0
func (h *BucketContent) Put(source, destination string) (err error)
Put writes to the bucket. The destination (root) 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) FilePost ¶ added in v0.3.0
FilePost uploads a file. Returns the created File resource.
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 File ¶ added in v0.3.0
type File struct {
// contains filtered or unexported fields
}
File API.
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 Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy API.
type Review ¶ added in v0.3.0
type Review struct {
// contains filtered or unexported fields
}
Review API.
type RichClient ¶
type RichClient struct { // Resources APIs. Application Application Bucket Bucket BusinessService BusinessService File File Identity Identity JobFunction JobFunction Proxy Proxy Review Review RuleSet RuleSet Setting Setting Stakeholder Stakeholder StakeholderGroup StakeholderGroup Tag Tag TagCategory TagCategory Target Target Task Task Dependency Dependency // A REST client. Client *Client }
The RichClient provides API integration.
func (*RichClient) Login ¶
func (r *RichClient) Login(user, password string) (err error)
Login set token.
type RuleSet ¶ added in v0.3.0
type RuleSet struct {
// contains filtered or unexported fields
}
RuleSet API.
type Setting ¶ added in v0.3.0
type Setting struct {
// contains filtered or unexported fields
}
Setting API.
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 Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag API.
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) Ensure ¶ added in v0.3.0
func (h *TagCategory) Ensure(wanted *api.TagCategory) (err error)
Ensure a tag-type exists.
func (*TagCategory) Find ¶ added in v0.3.0
func (h *TagCategory) Find(name string) (r *api.TagCategory, found bool, err error)
Find by name.
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.
type Target ¶ added in v0.3.0
type Target struct {
// contains filtered or unexported fields
}
Target API.