Documentation ¶
Index ¶
- Constants
- Variables
- type Addon
- type Analysis
- type AppFacts
- func (h *AppFacts) Delete(name string) (err error)
- func (h *AppFacts) Get(name string, value any) (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 any) (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) CreateAssesment(id uint, r *api.Assessment) (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) GetAssesments(id uint) (list []api.Assessment, 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 Archetype
- type Assessment
- 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) FilePatch(path string, buffer []byte) (err error)
- func (r *Client) FilePost(path, source string, object any) (err error)
- func (r *Client) FilePut(path, source string, object any) (err error)
- func (r *Client) FileSend(path, method string, fields []Field, object any) (err error)
- func (r *Client) Get(path string, object any, params ...Param) (err error)
- func (r *Client) IsDir(path string, must bool) (b bool, err error)
- func (r *Client) Patch(path string, object any, params ...Param) (err error)
- func (r *Client) Post(path string, object any) (err error)
- func (r *Client) Put(path string, object any, params ...Param) (err error)
- func (r *Client) Reset()
- type Conflict
- type Dependency
- type Field
- type File
- func (h *File) Delete(id uint) (err error)
- func (h *File) Get(id uint, destination string) (err error)
- func (h *File) Patch(id uint, buffer []byte) (err error)
- func (h *File) Post(source string) (r *api.File, err error)
- func (h *File) Put(source string) (r *api.File, err error)
- func (h *File) Touch(name string) (r *api.File, err error)
- 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 MigrationWave
- func (h *MigrationWave) Create(r *api.MigrationWave) (err error)
- func (h *MigrationWave) Delete(id uint) (err error)
- func (h *MigrationWave) Get(id uint) (r *api.MigrationWave, err error)
- func (h *MigrationWave) List() (list []api.MigrationWave, err error)
- func (h *MigrationWave) Update(r *api.MigrationWave) (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 Questionnaire
- func (h *Questionnaire) Create(r *api.Questionnaire) (err error)
- func (h *Questionnaire) Delete(id uint) (err error)
- func (h *Questionnaire) Get(id uint) (r *api.Questionnaire, err error)
- func (h *Questionnaire) List() (list []api.Questionnaire, err error)
- func (h *Questionnaire) Update(r *api.Questionnaire) (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
- func (h *Setting) Bool(key string) (b bool, err error)
- func (h *Setting) Create(r *api.Setting) (err error)
- func (h *Setting) Delete(key string) (err error)
- func (h *Setting) Get(key string, v any) (err error)
- func (h *Setting) Int(key string) (n int, err error)
- func (h *Setting) List() (list []api.Setting, err error)
- func (h *Setting) Str(key string) (s string, err error)
- func (h *Setting) Update(r *api.Setting) (err error)
- 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
- func (h *Task) Bucket(id uint) (b *BucketContent)
- func (h *Task) Create(r *api.Task) (err error)
- func (h *Task) Delete(id uint) (err error)
- func (h *Task) Get(id uint) (r *api.Task, err error)
- func (h *Task) List() (list []api.Task, err error)
- func (h *Task) Patch(id uint, r any) (err error)
- func (h *Task) Update(r *api.Task) (err error)
- type Ticket
- type Tracker
- func (h *Tracker) Create(r *api.Tracker) (err error)
- func (h *Tracker) Delete(id uint) (err error)
- func (h *Tracker) Get(id uint) (r *api.Tracker, err error)
- func (h *Tracker) GetProjects(id1 uint, id2 uint) (project api.Project, err error)
- func (h *Tracker) List() (list []api.Tracker, err error)
- func (h *Tracker) ListProjectIssueTypes(id1 uint, id2 uint) (issueType []api.IssueType, err error)
- func (h *Tracker) ListProjects(id uint) (projectList []api.Project, err error)
- func (h *Tracker) Update(r *api.Tracker) (err error)
Constants ¶
const ( RetryLimit = 60 RetryDelay = time.Second * 10 )
Variables ¶
var ( Settings = &settings.Settings Log = logr.WithName("binding") )
Functions ¶
This section is empty.
Types ¶
type Addon ¶ added in v0.5.0
type Addon struct {
// contains filtered or unexported fields
}
Addon API.
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) CreateAssesment ¶ added in v0.3.0
func (h *Application) CreateAssesment(id uint, r *api.Assessment) (err error)
Create an Application Assessment.
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) GetAssesments ¶ added in v0.3.0
func (h *Application) GetAssesments(id uint) (list []api.Assessment, err error)
Get Application Assessments.
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 Archetype ¶ added in v0.3.0
type Archetype struct {
// contains filtered or unexported fields
}
Archetype API.
type Assessment ¶ added in v0.3.0
type Assessment struct {
// contains filtered or unexported fields
}
Assessment API.
func (*Assessment) Delete ¶ added in v0.3.0
func (h *Assessment) Delete(id uint) (err error)
Delete a Assessment.
func (*Assessment) Get ¶ added in v0.3.0
func (h *Assessment) Get(id uint) (r *api.Assessment, err error)
Get a Assessment by ID.
func (*Assessment) List ¶ added in v0.3.0
func (h *Assessment) List() (list []api.Assessment, err error)
List Assessments.
func (*Assessment) Update ¶ added in v0.3.0
func (h *Assessment) Update(r *api.Assessment) (err error)
Update a Assessment.
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 { // baseURL for the nub. BaseURL string // login API resource. Login api.Login // 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) FilePatch ¶ added in v0.3.0
FilePatch appends file. Returns the created File resource.
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 MigrationWave ¶ added in v0.3.0
type MigrationWave struct {
// contains filtered or unexported fields
}
MigrationWave API.
func (*MigrationWave) Create ¶ added in v0.3.0
func (h *MigrationWave) Create(r *api.MigrationWave) (err error)
Create a MigrationWave.
func (*MigrationWave) Delete ¶ added in v0.3.0
func (h *MigrationWave) Delete(id uint) (err error)
Delete a MigrationWave.
func (*MigrationWave) Get ¶ added in v0.3.0
func (h *MigrationWave) Get(id uint) (r *api.MigrationWave, err error)
Get a MigrationWave by ID.
func (*MigrationWave) List ¶ added in v0.3.0
func (h *MigrationWave) List() (list []api.MigrationWave, err error)
List MigrationWaves.
func (*MigrationWave) Update ¶ added in v0.3.0
func (h *MigrationWave) Update(r *api.MigrationWave) (err error)
Update a MigrationWave.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy API.
type Questionnaire ¶ added in v0.3.0
type Questionnaire struct {
// contains filtered or unexported fields
}
Questionnaire API.
func (*Questionnaire) Create ¶ added in v0.3.0
func (h *Questionnaire) Create(r *api.Questionnaire) (err error)
Create a Questionnaire.
func (*Questionnaire) Delete ¶ added in v0.3.0
func (h *Questionnaire) Delete(id uint) (err error)
Delete a Questionnaire.
func (*Questionnaire) Get ¶ added in v0.3.0
func (h *Questionnaire) Get(id uint) (r *api.Questionnaire, err error)
Get a Questionnaire by ID.
func (*Questionnaire) List ¶ added in v0.3.0
func (h *Questionnaire) List() (list []api.Questionnaire, err error)
List Questionnaires.
func (*Questionnaire) Update ¶ added in v0.3.0
func (h *Questionnaire) Update(r *api.Questionnaire) (err error)
Update a Questionnaire.
type Review ¶ added in v0.3.0
type Review struct {
// contains filtered or unexported fields
}
Review API.
type RichClient ¶
type RichClient struct { Addon Addon Application Application Archetype Archetype Assessment Assessment Bucket Bucket BusinessService BusinessService Dependency Dependency File File Identity Identity JobFunction JobFunction MigrationWave MigrationWave Proxy Proxy Questionnaire Questionnaire Review Review RuleSet RuleSet Setting Setting Stakeholder Stakeholder StakeholderGroup StakeholderGroup Tag Tag TagCategory TagCategory Target Target Task Task Ticket Ticket Tracker Tracker // 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.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task API.
func (*Task) Bucket ¶ added in v0.3.0
func (h *Task) Bucket(id uint) (b *BucketContent)
Bucket returns the bucket API.
type Ticket ¶ added in v0.3.0
type Ticket struct {
// contains filtered or unexported fields
}
Ticket API.
type Tracker ¶ added in v0.3.0
type Tracker struct {
// contains filtered or unexported fields
}
Tracker API.
func (*Tracker) GetProjects ¶ added in v0.3.0
Get Projects.
func (*Tracker) ListProjectIssueTypes ¶ added in v0.3.0
List Project Issue Types.
func (*Tracker) ListProjects ¶ added in v0.3.0
List Projects.
Source Files ¶
- addon.go
- application.go
- archetype.go
- assessment.go
- bucket.go
- businessservice.go
- client.go
- dependency.go
- error.go
- file.go
- identity.go
- jobfunction.go
- migrationwave.go
- proxy.go
- questionnaire.go
- review.go
- richclient.go
- ruleset.go
- setting.go
- stakeholder.go
- stakeholdergroup.go
- tag.go
- tagcategory.go
- target.go
- task.go
- ticket.go
- tracker.go