Documentation ¶
Index ¶
- Constants
- Variables
- func CommentIncludeParent(request *http.Request, comment *comment.Comment, data *app.Comment, ...)
- func ConvertArea(db application.DB, request *http.Request, ar area.Area, ...) *app.Area
- func ConvertAreaSimple(request *http.Request, id interface{}) *app.GenericData
- func ConvertAreas(db application.DB, request *http.Request, areas []area.Area, ...) []*app.Area
- func ConvertCodebase(request *http.Request, codebase codebase.Codebase, ...) *app.Codebase
- func ConvertCodebases(request *http.Request, codebases []codebase.Codebase, ...) []*app.Codebase
- func ConvertComment(request *http.Request, comment comment.Comment, ...) *app.Comment
- func ConvertCommentResourceID(request *http.Request, comment comment.Comment, ...) *app.Comment
- func ConvertComments(request *http.Request, comments []comment.Comment, ...) []*app.Comment
- func ConvertCommentsResourceID(request *http.Request, comments []comment.Comment, ...) []*app.Comment
- func ConvertFieldDefinitionsToModel(fields map[string]app.FieldDefinition) (map[string]workitem.FieldDefinition, error)
- func ConvertFieldTypeFromModel(t workitem.FieldType) app.FieldType
- func ConvertFieldTypeToModel(t app.FieldType) (workitem.FieldType, error)
- func ConvertIteration(request *http.Request, itr iteration.Iteration, ...) *app.Iteration
- func ConvertIterationSimple(request *http.Request, id interface{}) *app.GenericData
- func ConvertIterations(request *http.Request, Iterations []iteration.Iteration, ...) []*app.Iteration
- func ConvertJSONAPIToWorkItem(ctx context.Context, method string, appl application.Application, ...) error
- func ConvertLabel(request *http.Request, lbl label.Label) *app.Label
- func ConvertLabelSimple(request *http.Request, labelID interface{}) *app.GenericData
- func ConvertLabels(appl application.Application, request *http.Request, labels []label.Label) []*app.Label
- func ConvertLabelsSimple(request *http.Request, labelIDs []interface{}) []*app.GenericData
- func ConvertLinkCategoryFromModel(t link.WorkItemLinkCategory) app.WorkItemLinkCategorySingle
- func ConvertLinkCategoryToModel(t app.WorkItemLinkCategorySingle) link.WorkItemLinkCategory
- func ConvertLinkFromModel(request *http.Request, t link.WorkItemLink) app.WorkItemLinkSingle
- func ConvertLinkToModel(appLink app.WorkItemLinkSingle) (*link.WorkItemLink, error)
- func ConvertLinkTypesFromModels(request *http.Request, modelLinkTypes []link.WorkItemLinkType) (*app.WorkItemLinkTypeList, error)
- func ConvertQueries(request *http.Request, queries []query.Query) []*app.Query
- func ConvertQuery(request *http.Request, q query.Query) *app.Query
- func ConvertSpaceFromModel(request *http.Request, sp space.Space, options ...SpaceConvertFunc) (*app.Space, error)
- func ConvertSpaceTemplate(appl application.Application, request *http.Request, ...) *app.SpaceTemplate
- func ConvertSpaceTemplates(appl application.Application, request *http.Request, ...) []*app.SpaceTemplate
- func ConvertSpaceToModel(appSpace app.Space) space.Space
- func ConvertSpacesFromModel(request *http.Request, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error)
- func ConvertTracker(request *http.Request, tracker remoteworkitem.Tracker) *app.Tracker
- func ConvertTrackers(request *http.Request, trackers []remoteworkitem.Tracker) []*app.Tracker
- func ConvertTypeGroup(request *http.Request, tg workitem.WorkItemTypeGroup) *app.WorkItemTypeGroupData
- func ConvertUserSimple(request *http.Request, identityID interface{}) *app.GenericData
- func ConvertUsersSimple(request *http.Request, identityIDs []interface{}) []*app.GenericData
- func ConvertWorkItem(request *http.Request, wit workitem.WorkItemType, wi workitem.WorkItem, ...) (*app.WorkItem, error)
- func ConvertWorkItemLinkTypeFromModel(request *http.Request, modelLinkType link.WorkItemLinkType) app.WorkItemLinkTypeSingle
- func ConvertWorkItemLinkTypeToModel(appLinkType app.WorkItemLinkTypeSingle) (*link.WorkItemLinkType, error)
- func ConvertWorkItemTypeFromModel(request *http.Request, t *workitem.WorkItemType) app.WorkItemTypeData
- func ConvertWorkItems(request *http.Request, wits []workitem.WorkItemType, wis []workitem.WorkItem, ...) ([]*app.WorkItem, error)
- func CreateCommentsRelation(request *http.Request, wi *workitem.WorkItem) *app.RelationGeneric
- func CreateCommentsRelationLinks(request *http.Request, wi *workitem.WorkItem) *app.GenericLinks
- func GetAccessTokens(configuration trackerConfiguration) map[string]string
- func NewTenantURLProviderFromTenant(t *app.UserService, token string, proxyURL string) (kubernetes.BaseURLProvider, error)
- func NewURLProvider(ctx context.Context, config *configuration.Registry, ...) (kubernetes.BaseURLProvider, error)
- type AreaController
- type AreaControllerConfiguration
- type AreaConvertFunc
- type ClientGetter
- type CodebaseCheClientProvider
- type CodebaseController
- func (c *CodebaseController) CheStart(ctx *app.CheStartCodebaseContext) error
- func (c *CodebaseController) CheState(ctx *app.CheStateCodebaseContext) error
- func (c *CodebaseController) Create(ctx *app.CreateCodebaseContext) error
- func (c *CodebaseController) Delete(ctx *app.DeleteCodebaseContext) error
- func (c *CodebaseController) Edit(ctx *app.EditCodebaseContext) error
- func (c *CodebaseController) ListWorkspaces(ctx *app.ListWorkspacesCodebaseContext) error
- func (c *CodebaseController) Open(ctx *app.OpenCodebaseContext) error
- func (c *CodebaseController) Show(ctx *app.ShowCodebaseContext) error
- type CodebaseConvertFunc
- type CollaboratorsConfiguration
- type CollaboratorsController
- func (c *CollaboratorsController) Add(ctx *app.AddCollaboratorsContext) error
- func (c *CollaboratorsController) AddMany(ctx *app.AddManyCollaboratorsContext) error
- func (c *CollaboratorsController) List(ctx *app.ListCollaboratorsContext) error
- func (c *CollaboratorsController) Remove(ctx *app.RemoveCollaboratorsContext) error
- func (c *CollaboratorsController) RemoveMany(ctx *app.RemoveManyCollaboratorsContext) error
- type CommentConvertFunc
- type CommentsController
- type CommentsControllerConfiguration
- type Data
- type DeploymentsController
- func (c *DeploymentsController) DeleteDeployment(ctx *app.DeleteDeploymentDeploymentsContext) error
- func (c *DeploymentsController) SetDeployment(ctx *app.SetDeploymentDeploymentsContext) error
- func (c *DeploymentsController) ShowDeploymentStatSeries(ctx *app.ShowDeploymentStatSeriesDeploymentsContext) error
- func (c *DeploymentsController) ShowDeploymentStats(ctx *app.ShowDeploymentStatsDeploymentsContext) error
- func (c *DeploymentsController) ShowSpace(ctx *app.ShowSpaceDeploymentsContext) error
- func (c *DeploymentsController) ShowSpaceEnvironments(ctx *app.ShowSpaceEnvironmentsDeploymentsContext) error
- type FeaturesController
- type FeaturesControllerConfiguration
- type FilterController
- type FilterControllerConfiguration
- type FilterEtagData
- type HrefFunc
- type IOResponseReader
- type IterationController
- func (c *IterationController) CreateChild(ctx *app.CreateChildIterationContext) error
- func (c *IterationController) Delete(ctx *app.DeleteIterationContext) error
- func (c *IterationController) Show(ctx *app.ShowIterationContext) error
- func (c *IterationController) Update(ctx *app.UpdateIterationContext) error
- type IterationControllerConfiguration
- type IterationConvertFunc
- type LabelController
- type LabelControllerConfiguration
- type LoginController
- type LogoutController
- type NamedWorkItemsController
- type NamedspacesController
- type OSIOClient
- func (osioclient *OSIOClient) GetNamespaceByType(ctx context.Context, userService *app.UserService, namespaceType string) (*app.NamespaceAttributes, error)
- func (osioclient *OSIOClient) GetSpaceByID(ctx context.Context, spaceID uuid.UUID) (*app.Space, error)
- func (osioclient *OSIOClient) GetUserServices(ctx context.Context) (*app.UserService, error)
- type OpenshiftIOClient
- type PermissionDefinition
- type PlannerBacklogController
- type PlannerBacklogControllerConfig
- type QueryController
- type QueryControllerConfiguration
- type RenderController
- type ResponseReader
- type SearchController
- type SpaceAreasController
- type SpaceAreasControllerConfig
- type SpaceCodebasesController
- type SpaceConfiguration
- type SpaceController
- func (c *SpaceController) Create(ctx *app.CreateSpaceContext) error
- func (c *SpaceController) Delete(ctx *app.DeleteSpaceContext) error
- func (c *SpaceController) List(ctx *app.ListSpaceContext) error
- func (c *SpaceController) Show(ctx *app.ShowSpaceContext) error
- func (c *SpaceController) Update(ctx *app.UpdateSpaceContext) error
- type SpaceConvertFunc
- type SpaceIterationsController
- type SpaceIterationsControllerConfiguration
- type SpaceTemplateController
- type SpaceTemplateControllerConfiguration
- type SpaceTemplateConvertFunc
- type StatusController
- type TokenRetriever
- type TrackerController
- func (c *TrackerController) Create(ctx *app.CreateTrackerContext) error
- func (c *TrackerController) Delete(ctx *app.DeleteTrackerContext) error
- func (c *TrackerController) List(ctx *app.ListTrackerContext) error
- func (c *TrackerController) Show(ctx *app.ShowTrackerContext) error
- func (c *TrackerController) Update(ctx *app.UpdateTrackerContext) error
- type TrackerqueryController
- func (c *TrackerqueryController) Create(ctx *app.CreateTrackerqueryContext) error
- func (c *TrackerqueryController) Delete(ctx *app.DeleteTrackerqueryContext) error
- func (c *TrackerqueryController) List(ctx *app.ListTrackerqueryContext) error
- func (c *TrackerqueryController) Show(ctx *app.ShowTrackerqueryContext) error
- func (c *TrackerqueryController) Update(ctx *app.UpdateTrackerqueryContext) error
- type UserController
- type UserControllerConfiguration
- type UserServiceController
- type UsersController
- func (c *UsersController) CreateUserAsServiceAccount(ctx *app.CreateUserAsServiceAccountUsersContext) error
- func (c *UsersController) List(ctx *app.ListUsersContext) error
- func (c *UsersController) Show(ctx *app.ShowUsersContext) error
- func (c *UsersController) Update(ctx *app.UpdateUsersContext) error
- func (c *UsersController) UpdateUserAsServiceAccount(ctx *app.UpdateUserAsServiceAccountUsersContext) error
- type UsersControllerConfiguration
- type UserspaceController
- type WitClient
- type WorkItemCommentsController
- type WorkItemCommentsControllerConfiguration
- type WorkItemControllerConfig
- type WorkItemConvertFunc
- type WorkItemInterfaceSlice
- type WorkItemLabelsController
- type WorkItemLabelsControllerConfiguration
- type WorkItemLinkCategoryController
- type WorkItemLinkController
- type WorkItemLinkControllerConfig
- type WorkItemLinkTypeController
- type WorkItemLinkTypeControllerConfiguration
- type WorkItemLinkTypesController
- type WorkItemLinkTypesControllerConfiguration
- type WorkItemPtrSlice
- type WorkItemRelationshipsLinksController
- type WorkItemRelationshipsLinksControllerConfig
- type WorkItemTypeGroupController
- type WorkItemTypeGroupsController
- type WorkitemController
- func (c *WorkitemController) Delete(ctx *app.DeleteWorkitemContext) error
- func (c *WorkitemController) ListChildren(ctx *app.ListChildrenWorkitemContext) error
- func (c *WorkitemController) Show(ctx *app.ShowWorkitemContext) error
- func (c *WorkitemController) Update(ctx *app.UpdateWorkitemContext) error
- type WorkitemsController
- type WorkitemtypeController
- type WorkitemtypesController
Constants ¶
const ( // APIStringTypeCodebase contains the JSON API type for codebases APIStringTypeCodebase = "codebases" // APIStringTypeWorkspace contains the JSON API type for worksapces APIStringTypeWorkspace = "workspaces" )
const ( KeyTotalWorkItems = "total" KeyClosedWorkItems = "closed" )
Following const are keys to be used in Meta Relationship for counters of Work Item
const ( RenderingType = "rendering" RenderedValue = "value" )
const ( APIStringTypeUser = "identities" APIStringTypeWorkItem = "workitems" APIStringTypeWorkItemType = "workitemtypes" )
Defines the constants to be used in json api "type" attribute
const (
// APIStringTypeCodebase contains the JSON API type for codebases
APIStringTypeSpace = "spaces"
)
Variables ¶
var ( // Commit current build commit set by build script Commit = "0" // BuildTime set by build script in ISO 8601 (UTC) format: YYYY-MM-DDThh:mm:ssTZD (see https://www.w3.org/TR/NOTE-datetime for details) BuildTime = "0" // StartTime in ISO 8601 (UTC) format StartTime = time.Now().UTC().Format("2006-01-02T15:04:05Z") )
var APISpaceTemplates = "spacetemplates"
APISpaceTemplates is the URL a) the URL portion in /api/spacetemplates and b) the "type" string in a JSON API resource object.
var APIWorkItemTypeGroups = "workitemtypegroups"
APIWorkItemTypeGroups is the type constant used when referring to work item type group relationships in JSONAPI
var ( // Permissions defines the value of each Permission Permissions = PermissionDefinition{ CreateWorkItem: "create.workitem", ReadWorkItem: "read.workitem", UpdateWorkItem: "update.workitem", DeleteWorkItem: "delete.workitem", } )
Functions ¶
func CommentIncludeParent ¶
func CommentIncludeParent(request *http.Request, comment *comment.Comment, data *app.Comment, href HrefFunc, parentType string)
CommentIncludeParent adds the "parent" relationship to this Comment
func ConvertArea ¶
func ConvertArea(db application.DB, request *http.Request, ar area.Area, options ...AreaConvertFunc) *app.Area
ConvertArea converts between internal and external REST representation
func ConvertAreaSimple ¶
func ConvertAreaSimple(request *http.Request, id interface{}) *app.GenericData
ConvertAreaSimple converts a simple area ID into a Generic Reletionship
func ConvertAreas ¶
func ConvertAreas(db application.DB, request *http.Request, areas []area.Area, additional ...AreaConvertFunc) []*app.Area
ConvertAreas converts between internal and external REST representation
func ConvertCodebase ¶
func ConvertCodebase(request *http.Request, codebase codebase.Codebase, options ...CodebaseConvertFunc) *app.Codebase
ConvertCodebase converts between internal and external REST representation
func ConvertCodebases ¶
func ConvertCodebases(request *http.Request, codebases []codebase.Codebase, options ...CodebaseConvertFunc) []*app.Codebase
ConvertCodebases converts between internal and external REST representation
func ConvertComment ¶
func ConvertComment(request *http.Request, comment comment.Comment, additional ...CommentConvertFunc) *app.Comment
ConvertComment converts between internal and external REST representation
func ConvertCommentResourceID ¶
func ConvertCommentResourceID(request *http.Request, comment comment.Comment, additional ...CommentConvertFunc) *app.Comment
ConvertCommentResourceID converts between internal and external REST representation, ResourceIdentificationObject only
func ConvertComments ¶
func ConvertComments(request *http.Request, comments []comment.Comment, additional ...CommentConvertFunc) []*app.Comment
ConvertComments converts between internal and external REST representation
func ConvertCommentsResourceID ¶
func ConvertCommentsResourceID(request *http.Request, comments []comment.Comment, additional ...CommentConvertFunc) []*app.Comment
ConvertCommentsResourceID converts between internal and external REST representation, ResourceIdentificationObject only
func ConvertFieldDefinitionsToModel ¶
func ConvertFieldDefinitionsToModel(fields map[string]app.FieldDefinition) (map[string]workitem.FieldDefinition, error)
func ConvertFieldTypeFromModel ¶
converts the field type from modesl to app representation
func ConvertFieldTypeToModel ¶
func ConvertIteration ¶
func ConvertIteration(request *http.Request, itr iteration.Iteration, additional ...IterationConvertFunc) *app.Iteration
ConvertIteration converts between internal and external REST representation
func ConvertIterationSimple ¶
func ConvertIterationSimple(request *http.Request, id interface{}) *app.GenericData
ConvertIterationSimple converts a simple Iteration ID into a Generic Reletionship
func ConvertIterations ¶
func ConvertIterations(request *http.Request, Iterations []iteration.Iteration, additional ...IterationConvertFunc) []*app.Iteration
ConvertIterations converts between internal and external REST representation
func ConvertJSONAPIToWorkItem ¶
func ConvertJSONAPIToWorkItem(ctx context.Context, method string, appl application.Application, source app.WorkItem, target *workitem.WorkItem, witID uuid.UUID, spaceID uuid.UUID) error
ConvertJSONAPIToWorkItem is responsible for converting given WorkItem model object into a response resource object by jsonapi.org specifications
func ConvertLabel ¶
ConvertLabel converts from internal to external REST representation
func ConvertLabelSimple ¶
func ConvertLabelSimple(request *http.Request, labelID interface{}) *app.GenericData
ConvertLabelSimple converts a Label ID into a Generic Reletionship
func ConvertLabels ¶
func ConvertLabels(appl application.Application, request *http.Request, labels []label.Label) []*app.Label
ConvertLabels from internal to external REST representation
func ConvertLabelsSimple ¶
func ConvertLabelsSimple(request *http.Request, labelIDs []interface{}) []*app.GenericData
ConvertLabelsSimple converts an array of Label IDs into a Generic Reletionship List
func ConvertLinkCategoryFromModel ¶
func ConvertLinkCategoryFromModel(t link.WorkItemLinkCategory) app.WorkItemLinkCategorySingle
ConvertLinkCategoryFromModel converts work item link category from model to app representation
func ConvertLinkCategoryToModel ¶
func ConvertLinkCategoryToModel(t app.WorkItemLinkCategorySingle) link.WorkItemLinkCategory
ConvertLinkCategoryToModel converts work item link category from app to app representation
func ConvertLinkFromModel ¶
func ConvertLinkFromModel(request *http.Request, t link.WorkItemLink) app.WorkItemLinkSingle
ConvertLinkFromModel converts a work item from model to REST representation
func ConvertLinkToModel ¶
func ConvertLinkToModel(appLink app.WorkItemLinkSingle) (*link.WorkItemLink, error)
ConvertLinkToModel converts the incoming app representation of a work item link to the model layout. Values are only overwrriten if they are set in "in", otherwise the values in "out" remain. NOTE: Only the LinkTypeID, SourceID, and TargetID fields will be set.
You need to preload the elements after calling this function.
func ConvertLinkTypesFromModels ¶
func ConvertLinkTypesFromModels(request *http.Request, modelLinkTypes []link.WorkItemLinkType) (*app.WorkItemLinkTypeList, error)
func ConvertQueries ¶
ConvertQueries from internal to external REST representation
func ConvertQuery ¶
ConvertQuery converts from internal to external REST representation
func ConvertSpaceFromModel ¶
func ConvertSpaceFromModel(request *http.Request, sp space.Space, options ...SpaceConvertFunc) (*app.Space, error)
ConvertSpaceFromModel converts between internal and external REST representation
func ConvertSpaceTemplate ¶
func ConvertSpaceTemplate(appl application.Application, request *http.Request, st spacetemplate.SpaceTemplate, additional ...SpaceTemplateConvertFunc) *app.SpaceTemplate
ConvertSpaceTemplate converts between internal and external REST representation
func ConvertSpaceTemplates ¶
func ConvertSpaceTemplates(appl application.Application, request *http.Request, spaceTemplates []spacetemplate.SpaceTemplate, additional ...SpaceTemplateConvertFunc) []*app.SpaceTemplate
ConvertSpaceTemplates converts between internal and external REST representation
func ConvertSpaceToModel ¶
ConvertSpaceToModel converts an `app.Space` to a `space.Space`
func ConvertSpacesFromModel ¶
func ConvertSpacesFromModel(request *http.Request, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error)
ConvertSpacesFromModel converts between internal and external REST representation
func ConvertTracker ¶
ConvertTracker converts from internal to external REST representation
func ConvertTrackers ¶
ConvertTrackers from internal to external REST representation
func ConvertTypeGroup ¶
func ConvertTypeGroup(request *http.Request, tg workitem.WorkItemTypeGroup) *app.WorkItemTypeGroupData
ConvertTypeGroup converts WorkitemTypeGroup model to a response resource object for jsonapi.org specification
func ConvertUserSimple ¶
func ConvertUserSimple(request *http.Request, identityID interface{}) *app.GenericData
ConvertUserSimple converts a simple Identity ID into a Generic Reletionship
func ConvertUsersSimple ¶
func ConvertUsersSimple(request *http.Request, identityIDs []interface{}) []*app.GenericData
ConvertUsersSimple converts a array of simple Identity IDs into a Generic Reletionship List
func ConvertWorkItem ¶
func ConvertWorkItem(request *http.Request, wit workitem.WorkItemType, wi workitem.WorkItem, additional ...WorkItemConvertFunc) (*app.WorkItem, error)
ConvertWorkItem is responsible for converting given WorkItem model object into a response resource object by jsonapi.org specifications
func ConvertWorkItemLinkTypeFromModel ¶
func ConvertWorkItemLinkTypeFromModel(request *http.Request, modelLinkType link.WorkItemLinkType) app.WorkItemLinkTypeSingle
ConvertWorkItemLinkTypeFromModel converts a work item link type from model to REST representation
func ConvertWorkItemLinkTypeToModel ¶
func ConvertWorkItemLinkTypeToModel(appLinkType app.WorkItemLinkTypeSingle) (*link.WorkItemLinkType, error)
ConvertWorkItemLinkTypeToModel converts the incoming app representation of a work item link type to the model layout. Values are only overwrriten if they are set in "in", otherwise the values in "out" remain.
func ConvertWorkItemTypeFromModel ¶
func ConvertWorkItemTypeFromModel(request *http.Request, t *workitem.WorkItemType) app.WorkItemTypeData
ConvertWorkItemTypeFromModel converts from models to app representation
func ConvertWorkItems ¶
func ConvertWorkItems(request *http.Request, wits []workitem.WorkItemType, wis []workitem.WorkItem, additional ...WorkItemConvertFunc) ([]*app.WorkItem, error)
ConvertWorkItems is responsible for converting given []WorkItem model object into a response resource object by jsonapi.org specifications
func CreateCommentsRelation ¶
CreateCommentsRelation returns a RelationGeneric object representing the relation for a workitem to comment relation
func CreateCommentsRelationLinks ¶
CreateCommentsRelationLinks returns a RelationGeneric object representing the links for a workitem to comment relation
func GetAccessTokens ¶
func NewTenantURLProviderFromTenant ¶
func NewTenantURLProviderFromTenant(t *app.UserService, token string, proxyURL string) (kubernetes.BaseURLProvider, error)
NewTenantURLProviderFromTenant create a provider from a UserService object (exposed for testing)
func NewURLProvider ¶
func NewURLProvider(ctx context.Context, config *configuration.Registry, osioclient OpenshiftIOClient) (kubernetes.BaseURLProvider, error)
NewURLProvider looks at what servers are available and create a BaseURLProvder that fits
Types ¶
type AreaController ¶
type AreaController struct { *goa.Controller // contains filtered or unexported fields }
AreaController implements the area resource.
func NewAreaController ¶
func NewAreaController(service *goa.Service, db application.DB, config AreaControllerConfiguration) *AreaController
NewAreaController creates a area controller.
func (*AreaController) CreateChild ¶
func (c *AreaController) CreateChild(ctx *app.CreateChildAreaContext) error
CreateChild runs the create-child action.
func (*AreaController) Show ¶
func (c *AreaController) Show(ctx *app.ShowAreaContext) error
Show runs the show action.
func (*AreaController) ShowChildren ¶
func (c *AreaController) ShowChildren(ctx *app.ShowChildrenAreaContext) error
ShowChildren runs the show-children action
type AreaControllerConfiguration ¶
type AreaControllerConfiguration interface { GetCacheControlAreas() string GetCacheControlArea() string }
AreaControllerConfiguration the configuration for the AreaController
type AreaConvertFunc ¶
AreaConvertFunc is a open ended function to add additional links/data/relations to a area during convertion from internal to API
type ClientGetter ¶
type ClientGetter interface { GetKubeClient(ctx context.Context) (kubernetes.KubeClientInterface, error) GetAndCheckOSIOClient(ctx context.Context) (OpenshiftIOClient, error) }
ClientGetter creates an instances of clients used by this controller
type CodebaseCheClientProvider ¶
CodebaseCheClientProvider the function that provides a `cheClient`
func NewDefaultCheClient ¶
func NewDefaultCheClient(config codebaseConfiguration) CodebaseCheClientProvider
NewDefaultCheClient returns the default function to initialize a new Che client with a "regular" http client
type CodebaseController ¶
type CodebaseController struct { *goa.Controller ShowTenant account.CodebaseInitTenantProvider NewCheClient CodebaseCheClientProvider // contains filtered or unexported fields }
CodebaseController implements the codebase resource.
func NewCodebaseController ¶
func NewCodebaseController(service *goa.Service, db application.DB, config codebaseConfiguration) *CodebaseController
NewCodebaseController creates a codebase controller.
func (*CodebaseController) CheStart ¶
func (c *CodebaseController) CheStart(ctx *app.CheStartCodebaseContext) error
CheStart starts server if not running.
func (*CodebaseController) CheState ¶
func (c *CodebaseController) CheState(ctx *app.CheStateCodebaseContext) error
CheState gets che server state.
func (*CodebaseController) Create ¶
func (c *CodebaseController) Create(ctx *app.CreateCodebaseContext) error
Create runs the create action.
func (*CodebaseController) Delete ¶
func (c *CodebaseController) Delete(ctx *app.DeleteCodebaseContext) error
Delete deletes the given codebase if the user is authenticated and authorized
func (*CodebaseController) Edit ¶
func (c *CodebaseController) Edit(ctx *app.EditCodebaseContext) error
Edit Deprecated: ListWorkspaces action should be used instead.
func (*CodebaseController) ListWorkspaces ¶
func (c *CodebaseController) ListWorkspaces(ctx *app.ListWorkspacesCodebaseContext) error
ListWorkspaces runs the listWorkspaces action.
func (*CodebaseController) Open ¶
func (c *CodebaseController) Open(ctx *app.OpenCodebaseContext) error
Open runs the open action.
func (*CodebaseController) Show ¶
func (c *CodebaseController) Show(ctx *app.ShowCodebaseContext) error
Show runs the show action.
type CodebaseConvertFunc ¶
CodebaseConvertFunc is a open ended function to add additional links/data/relations to a Codebase during convertion from internal to API
type CollaboratorsController ¶
type CollaboratorsController struct { *goa.Controller // contains filtered or unexported fields }
CollaboratorsController implements the collaborators resource.
func NewCollaboratorsController ¶
func NewCollaboratorsController(service *goa.Service, config CollaboratorsConfiguration) *CollaboratorsController
NewCollaboratorsController creates a collaborators controller.
func (*CollaboratorsController) Add ¶
func (c *CollaboratorsController) Add(ctx *app.AddCollaboratorsContext) error
Add user's identity to the list of space collaborators.
func (*CollaboratorsController) AddMany ¶
func (c *CollaboratorsController) AddMany(ctx *app.AddManyCollaboratorsContext) error
AddMany adds user's identities to the list of space collaborators.
func (*CollaboratorsController) List ¶
func (c *CollaboratorsController) List(ctx *app.ListCollaboratorsContext) error
List collaborators for the given space ID.
func (*CollaboratorsController) Remove ¶
func (c *CollaboratorsController) Remove(ctx *app.RemoveCollaboratorsContext) error
Remove user from the list of space collaborators.
func (*CollaboratorsController) RemoveMany ¶
func (c *CollaboratorsController) RemoveMany(ctx *app.RemoveManyCollaboratorsContext) error
RemoveMany removes users from the list of space collaborators.
type CommentConvertFunc ¶
CommentConvertFunc is a open ended function to add additional links/data/relations to a Comment during conversion from internal to API
func CommentIncludeParentWorkItem ¶
func CommentIncludeParentWorkItem(ctx context.Context, c *comment.Comment) CommentConvertFunc
CommentIncludeParentWorkItem includes a "parent" relation to a WorkItem
type CommentsController ¶
type CommentsController struct { *goa.Controller // contains filtered or unexported fields }
CommentsController implements the comments resource.
func NewCommentsController ¶
func NewCommentsController(service *goa.Service, db application.DB, config CommentsControllerConfiguration) *CommentsController
NewCommentsController creates a comments controller.
func NewNotifyingCommentsController ¶
func NewNotifyingCommentsController(service *goa.Service, db application.DB, notificationChannel notification.Channel, config CommentsControllerConfiguration) *CommentsController
NewNotifyingCommentsController creates a comments controller with notification broadcast.
func (*CommentsController) Delete ¶
func (c *CommentsController) Delete(ctx *app.DeleteCommentsContext) error
Delete does DELETE comment
func (*CommentsController) Show ¶
func (c *CommentsController) Show(ctx *app.ShowCommentsContext) error
Show runs the show action.
func (*CommentsController) Update ¶
func (c *CommentsController) Update(ctx *app.UpdateCommentsContext) error
Update does PATCH comment
type CommentsControllerConfiguration ¶
type CommentsControllerConfiguration interface { GetCacheControlComments() string GetCacheControlComment() string }
CommentsControllerConfiguration the configuration for CommentsController
type Data ¶
type Data struct { gormsupport.Lifecycle ID uuid.UUID `sql:"type:uuid default uuid_generate_v4()" gorm:"primary_key"` // This is the ID PK field Path string Data workitem.Fields `sql:"type:jsonb"` }
Data describes a single resource in usersapce
type DeploymentsController ¶
type DeploymentsController struct { *goa.Controller Config *configuration.Registry ClientGetter }
DeploymentsController implements the deployments resource.
func NewDeploymentsController ¶
func NewDeploymentsController(service *goa.Service, config *configuration.Registry) *DeploymentsController
NewDeploymentsController creates a deployments controller.
func (*DeploymentsController) DeleteDeployment ¶
func (c *DeploymentsController) DeleteDeployment(ctx *app.DeleteDeploymentDeploymentsContext) error
DeleteDeployment runs the deleteDeployment action.
func (*DeploymentsController) SetDeployment ¶
func (c *DeploymentsController) SetDeployment(ctx *app.SetDeploymentDeploymentsContext) error
SetDeployment runs the setDeployment action.
func (*DeploymentsController) ShowDeploymentStatSeries ¶
func (c *DeploymentsController) ShowDeploymentStatSeries(ctx *app.ShowDeploymentStatSeriesDeploymentsContext) error
ShowDeploymentStatSeries runs the showDeploymentStatSeries action.
func (*DeploymentsController) ShowDeploymentStats ¶
func (c *DeploymentsController) ShowDeploymentStats(ctx *app.ShowDeploymentStatsDeploymentsContext) error
ShowDeploymentStats runs the showDeploymentStats action.
func (*DeploymentsController) ShowSpace ¶
func (c *DeploymentsController) ShowSpace(ctx *app.ShowSpaceDeploymentsContext) error
ShowSpace runs the showSpace action.
func (*DeploymentsController) ShowSpaceEnvironments ¶
func (c *DeploymentsController) ShowSpaceEnvironments(ctx *app.ShowSpaceEnvironmentsDeploymentsContext) error
ShowSpaceEnvironments runs the showSpaceEnvironments action.
type FeaturesController ¶
type FeaturesController struct { *goa.Controller // contains filtered or unexported fields }
FeaturesController implements the features resource/controller.
func NewFeaturesController ¶
func NewFeaturesController(service *goa.Service, config FeaturesControllerConfiguration) *FeaturesController
NewFeaturesController creates a features controller.
func (*FeaturesController) List ¶
func (c *FeaturesController) List(ctx *app.ListFeaturesContext) error
List runs the list action.
func (*FeaturesController) Show ¶
func (c *FeaturesController) Show(ctx *app.ShowFeaturesContext) error
Show runs the show action.
type FeaturesControllerConfiguration ¶
type FeaturesControllerConfiguration interface {
GetTogglesServiceURL() string
}
FeaturesControllerConfiguration the configuration for the features resource/controller.
type FilterController ¶
type FilterController struct { *goa.Controller // contains filtered or unexported fields }
FilterController implements the filter resource.
func NewFilterController ¶
func NewFilterController(service *goa.Service, config FilterControllerConfiguration) *FilterController
NewFilterController creates a filter controller.
func (*FilterController) List ¶
func (c *FilterController) List(ctx *app.ListFilterContext) error
List runs the list action.
type FilterControllerConfiguration ¶
type FilterControllerConfiguration interface {
GetCacheControlFilters() string
}
FilterControllerConfiguration the configuration for the FilterController.
type FilterEtagData ¶
FilterEtagData structure that carries the data to generate an ETag.
func (FilterEtagData) GetETagData ¶
func (f FilterEtagData) GetETagData() []interface{}
GetETagData returns the field values to compute the ETag.
func (FilterEtagData) GetLastModified ¶
func (f FilterEtagData) GetLastModified() time.Time
GetLastModified returns the field values to compute the '`Last-Modified` response header.
type HrefFunc ¶
type HrefFunc func(id interface{}) string
HrefFunc generic function to greate a relative Href to a resource
type IOResponseReader ¶
type IOResponseReader struct { }
IOResponseReader actual implementation of ResponseReader
func (*IOResponseReader) ReadResponse ¶
func (r *IOResponseReader) ReadResponse(resp *http.Response) ([]byte, error)
ReadResponse implementation for ResponseReader
type IterationController ¶
type IterationController struct { *goa.Controller // contains filtered or unexported fields }
IterationController implements the iteration resource.
func NewIterationController ¶
func NewIterationController(service *goa.Service, db application.DB, config IterationControllerConfiguration) *IterationController
NewIterationController creates a iteration controller.
func (*IterationController) CreateChild ¶
func (c *IterationController) CreateChild(ctx *app.CreateChildIterationContext) error
CreateChild runs the create-child action.
func (*IterationController) Delete ¶
func (c *IterationController) Delete(ctx *app.DeleteIterationContext) error
Delete runs the delete action.
func (*IterationController) Show ¶
func (c *IterationController) Show(ctx *app.ShowIterationContext) error
Show runs the show action.
func (*IterationController) Update ¶
func (c *IterationController) Update(ctx *app.UpdateIterationContext) error
Update runs the update action.
type IterationControllerConfiguration ¶
type IterationControllerConfiguration interface { GetCacheControlIterations() string GetCacheControlIteration() string }
IterationControllerConfiguration configuration for the IterationController
type IterationConvertFunc ¶
IterationConvertFunc is a open ended function to add additional links/data/relations to a Iteration during conversion from internal to API
type LabelController ¶
type LabelController struct { *goa.Controller // contains filtered or unexported fields }
LabelController implements the label resource.
func NewLabelController ¶
func NewLabelController(service *goa.Service, db application.DB, config LabelControllerConfiguration) *LabelController
NewLabelController creates a label controller.
func (*LabelController) Create ¶
func (c *LabelController) Create(ctx *app.CreateLabelContext) error
Create runs the create action.
func (*LabelController) List ¶
func (c *LabelController) List(ctx *app.ListLabelContext) error
List runs the list action.
func (*LabelController) Show ¶
func (c *LabelController) Show(ctx *app.ShowLabelContext) error
Show retrieve a single label
func (*LabelController) Update ¶
func (c *LabelController) Update(ctx *app.UpdateLabelContext) error
Update runs the update action.
type LabelControllerConfiguration ¶
type LabelControllerConfiguration interface { GetCacheControlLabels() string GetCacheControlLabel() string }
LabelControllerConfiguration the configuration for the LabelController
type LoginController ¶
type LoginController struct { *goa.Controller // contains filtered or unexported fields }
LoginController implements the login resource.
func NewLoginController ¶
func NewLoginController(service *goa.Service, auth *login.KeycloakOAuthProvider, configuration loginConfiguration, identityRepository account.IdentityRepository) *LoginController
NewLoginController creates a login controller.
func (*LoginController) Authorize ¶
func (c *LoginController) Authorize(ctx *app.AuthorizeLoginContext) error
Authorize runs the authorize action.
func (*LoginController) Generate ¶
func (c *LoginController) Generate(ctx *app.GenerateLoginContext) error
Generate generates access tokens in Dev Mode
func (*LoginController) Refresh ¶
func (c *LoginController) Refresh(ctx *app.RefreshLoginContext) error
Refresh obtain a new access token using the refresh token.
type LogoutController ¶
type LogoutController struct { *goa.Controller // contains filtered or unexported fields }
LogoutController implements the logout resource.
func NewLogoutController ¶
func NewLogoutController(service *goa.Service, configuration auth.ServiceConfiguration) *LogoutController
NewLogoutController creates a logout controller.
func (*LogoutController) Logout ¶
func (c *LogoutController) Logout(ctx *app.LogoutLogoutContext) error
Logout runs the logout action.
type NamedWorkItemsController ¶
type NamedWorkItemsController struct { *goa.Controller // contains filtered or unexported fields }
NamedWorkItemsController implements the named_work_items resource.
func NewNamedWorkItemsController ¶
func NewNamedWorkItemsController(service *goa.Service, db application.DB) *NamedWorkItemsController
NewNamedWorkItemsController creates a named_work_items controller.
func (*NamedWorkItemsController) Show ¶
func (c *NamedWorkItemsController) Show(ctx *app.ShowNamedWorkItemsContext) error
Show shows a work item from the given named space (ie, space name along with owner's username) and its number
type NamedspacesController ¶
type NamedspacesController struct { *goa.Controller // contains filtered or unexported fields }
NamedspacesController implements the namedspaces resource.
func NewNamedspacesController ¶
func NewNamedspacesController(service *goa.Service, db application.DB) *NamedspacesController
NewNamedspacesController creates a namedspaces controller.
func (*NamedspacesController) List ¶
func (c *NamedspacesController) List(ctx *app.ListNamedspacesContext) error
func (*NamedspacesController) Show ¶
func (c *NamedspacesController) Show(ctx *app.ShowNamedspacesContext) error
Show runs the show action.
type OSIOClient ¶
type OSIOClient struct {
// contains filtered or unexported fields
}
OSIOClient contains configuration and methods for interacting with OSIO API
func (*OSIOClient) GetNamespaceByType ¶
func (osioclient *OSIOClient) GetNamespaceByType(ctx context.Context, userService *app.UserService, namespaceType string) (*app.NamespaceAttributes, error)
GetNamespaceByType finds a namespace by type (user, che, stage, etc) if userService is nil, will fetch the user services under the hood
func (*OSIOClient) GetSpaceByID ¶
func (osioclient *OSIOClient) GetSpaceByID(ctx context.Context, spaceID uuid.UUID) (*app.Space, error)
GetSpaceByID - fetch space given UUID
func (*OSIOClient) GetUserServices ¶
func (osioclient *OSIOClient) GetUserServices(ctx context.Context) (*app.UserService, error)
GetUserServices - fetch array of user services In the future, consider calling the tenant service (as /api/user/services implementation does)
type OpenshiftIOClient ¶
type OpenshiftIOClient interface { GetNamespaceByType(ctx context.Context, userService *app.UserService, namespaceType string) (*app.NamespaceAttributes, error) GetUserServices(ctx context.Context) (*app.UserService, error) GetSpaceByID(ctx context.Context, spaceID uuid.UUID) (*app.Space, error) }
OpenshiftIOClient is an interface for mocking OSIOClient
func CreateOSIOClient ¶
func CreateOSIOClient(witclient WitClient, responseReader ResponseReader) OpenshiftIOClient
CreateOSIOClient factory method replaced during unit testing
func NewOSIOClient ¶
func NewOSIOClient(ctx context.Context, scheme string, host string) OpenshiftIOClient
NewOSIOClient creates an openshift IO client given an http request context
type PermissionDefinition ¶
type PermissionDefinition struct { CreateWorkItem string ReadWorkItem string UpdateWorkItem string DeleteWorkItem string }
PermissionDefinition defines the Permissions available
func (*PermissionDefinition) CRUDWorkItem ¶
func (p *PermissionDefinition) CRUDWorkItem() []string
CRUDWorkItem returns all CRUD permissions for a WorkItem
type PlannerBacklogController ¶
type PlannerBacklogController struct { *goa.Controller // contains filtered or unexported fields }
PlannerBacklogController implements the planner_backlog resource.
func NewPlannerBacklogController ¶
func NewPlannerBacklogController(service *goa.Service, db application.DB, config PlannerBacklogControllerConfig) *PlannerBacklogController
NewPlannerBacklogController creates a planner_backlog controller.
func (*PlannerBacklogController) List ¶
func (c *PlannerBacklogController) List(ctx *app.ListPlannerBacklogContext) error
type PlannerBacklogControllerConfig ¶
type PlannerBacklogControllerConfig interface {
GetCacheControlWorkItems() string
}
type QueryController ¶
type QueryController struct { *goa.Controller // contains filtered or unexported fields }
QueryController implements the query resource.
func NewQueryController ¶
func NewQueryController(service *goa.Service, db application.DB, config QueryControllerConfiguration) *QueryController
NewQueryController creates a query controller.
func (*QueryController) Create ¶
func (c *QueryController) Create(ctx *app.CreateQueryContext) error
Create runs the create action.
func (*QueryController) Delete ¶
func (c *QueryController) Delete(ctx *app.DeleteQueryContext) error
Delete runs the delete action.
func (*QueryController) List ¶
func (c *QueryController) List(ctx *app.ListQueryContext) error
List runs the list action.
func (*QueryController) Show ¶
func (c *QueryController) Show(ctx *app.ShowQueryContext) error
Show runs the show action.
type QueryControllerConfiguration ¶
type QueryControllerConfiguration interface { GetCacheControlQueries() string GetCacheControlQuery() string }
QueryControllerConfiguration the configuration for the QueryController
type RenderController ¶
type RenderController struct {
*goa.Controller
}
RenderController implements the render resource.
func NewRenderController ¶
func NewRenderController(service *goa.Service) *RenderController
NewRenderController creates a render controller.
func (*RenderController) Render ¶
func (c *RenderController) Render(ctx *app.RenderRenderContext) error
Render runs the render action.
type ResponseReader ¶
ResponseReader allows for reading from responses or mocked responses
type SearchController ¶
type SearchController struct { *goa.Controller // contains filtered or unexported fields }
SearchController implements the search resource.
func NewSearchController ¶
func NewSearchController(service *goa.Service, db application.DB, configuration searchConfiguration) *SearchController
NewSearchController creates a search controller.
func (*SearchController) Codebases ¶
func (c *SearchController) Codebases(ctx *app.CodebasesSearchContext) error
Codebases runs the codebases search action.
func (*SearchController) Show ¶
func (c *SearchController) Show(ctx *app.ShowSearchContext) error
Show runs the show action.
func (*SearchController) Spaces ¶
func (c *SearchController) Spaces(ctx *app.SpacesSearchContext) error
Spaces runs the space search action.
func (*SearchController) Users ¶
func (c *SearchController) Users(ctx *app.UsersSearchContext) error
Users runs the user search action.
type SpaceAreasController ¶
type SpaceAreasController struct { *goa.Controller // contains filtered or unexported fields }
SpaceAreasController implements the space-Areas resource.
func NewSpaceAreasController ¶
func NewSpaceAreasController(service *goa.Service, db application.DB, config SpaceAreasControllerConfig) *SpaceAreasController
NewSpaceAreasController creates a space-Areas controller.
func (*SpaceAreasController) List ¶
func (c *SpaceAreasController) List(ctx *app.ListSpaceAreasContext) error
List runs the list action.
type SpaceAreasControllerConfig ¶
type SpaceAreasControllerConfig interface {
GetCacheControlAreas() string
}
SpaceAreasControllerConfig the configuration for the SpaceAreasController
type SpaceCodebasesController ¶
type SpaceCodebasesController struct { *goa.Controller // contains filtered or unexported fields }
SpaceCodebasesController implements the space-codebases resource.
func NewSpaceCodebasesController ¶
func NewSpaceCodebasesController(service *goa.Service, db application.DB) *SpaceCodebasesController
NewSpaceCodebasesController creates a space-codebases controller.
func (*SpaceCodebasesController) Create ¶
func (c *SpaceCodebasesController) Create(ctx *app.CreateSpaceCodebasesContext) error
Create runs the create action.
func (*SpaceCodebasesController) List ¶
func (c *SpaceCodebasesController) List(ctx *app.ListSpaceCodebasesContext) error
List runs the list action.
type SpaceConfiguration ¶
SpaceConfiguration represents space configuratoin
type SpaceController ¶
type SpaceController struct { *goa.Controller // contains filtered or unexported fields }
SpaceController implements the space resource.
func NewSpaceController ¶
func NewSpaceController(service *goa.Service, db application.DB, config SpaceConfiguration, resourceManager auth.ResourceManager) *SpaceController
NewSpaceController creates a space controller.
func (*SpaceController) Create ¶
func (c *SpaceController) Create(ctx *app.CreateSpaceContext) error
Create runs the create action.
func (*SpaceController) Delete ¶
func (c *SpaceController) Delete(ctx *app.DeleteSpaceContext) error
Delete runs the delete action.
func (*SpaceController) List ¶
func (c *SpaceController) List(ctx *app.ListSpaceContext) error
List runs the list action.
func (*SpaceController) Show ¶
func (c *SpaceController) Show(ctx *app.ShowSpaceContext) error
Show runs the show action.
func (*SpaceController) Update ¶
func (c *SpaceController) Update(ctx *app.UpdateSpaceContext) error
Update runs the update action.
type SpaceConvertFunc ¶
SpaceConvertFunc is a open ended function to add additional links/data/relations to a Space during conversion from internal to API
func IncludeBacklogTotalCount ¶
func IncludeBacklogTotalCount(ctx context.Context, db application.DB) SpaceConvertFunc
IncludeBacklog returns a SpaceConvertFunc that includes the a link to the backlog along with the total count of items in the backlog of the current space
type SpaceIterationsController ¶
type SpaceIterationsController struct { *goa.Controller // contains filtered or unexported fields }
SpaceIterationsController implements the space-iterations resource.
func NewSpaceIterationsController ¶
func NewSpaceIterationsController(service *goa.Service, db application.DB, config SpaceIterationsControllerConfiguration) *SpaceIterationsController
NewSpaceIterationsController creates a space-iterations controller.
func (*SpaceIterationsController) Create ¶
func (c *SpaceIterationsController) Create(ctx *app.CreateSpaceIterationsContext) error
Create runs the create action.
func (*SpaceIterationsController) List ¶
func (c *SpaceIterationsController) List(ctx *app.ListSpaceIterationsContext) error
List runs the list action.
type SpaceIterationsControllerConfiguration ¶
type SpaceIterationsControllerConfiguration interface {
GetCacheControlIterations() string
}
SpaceIterationsControllerConfiguration configuration for the SpaceIterationsController
type SpaceTemplateController ¶
type SpaceTemplateController struct { *goa.Controller // contains filtered or unexported fields }
SpaceTemplateController implements the space_template resource.
func NewSpaceTemplateController ¶
func NewSpaceTemplateController(service *goa.Service, db application.DB, config SpaceTemplateControllerConfiguration) *SpaceTemplateController
NewSpaceTemplateController creates a space_template controller.
func (*SpaceTemplateController) List ¶
func (c *SpaceTemplateController) List(ctx *app.ListSpaceTemplateContext) error
List runs the list action.
func (*SpaceTemplateController) Show ¶
func (c *SpaceTemplateController) Show(ctx *app.ShowSpaceTemplateContext) error
Show runs the show action.
type SpaceTemplateControllerConfiguration ¶
type SpaceTemplateControllerConfiguration interface {
GetCacheControlSpaceTemplates() string
}
SpaceTemplateControllerConfiguration the configuration for the SpaceTemplateController
type SpaceTemplateConvertFunc ¶
type SpaceTemplateConvertFunc func(application.Application, *http.Request, *spacetemplate.SpaceTemplate, *app.SpaceTemplate) error
SpaceTemplateConvertFunc is a open ended function to add additional links/data/relations to a space template during convertion from internal to API
type StatusController ¶
type StatusController struct { *goa.Controller // contains filtered or unexported fields }
StatusController implements the status resource.
func NewStatusController ¶
func NewStatusController(service *goa.Service, db *gorm.DB) *StatusController
NewStatusController creates a status controller.
func (*StatusController) Show ¶
func (c *StatusController) Show(ctx *app.ShowStatusContext) error
Show runs the show action.
type TokenRetriever ¶
TokenRetriever is a service that will respond with an authorization token, given a service endpoint or name
type TrackerController ¶
type TrackerController struct { *goa.Controller // contains filtered or unexported fields }
TrackerController implements the tracker resource.
func NewTrackerController ¶
func NewTrackerController(service *goa.Service, db application.DB, scheduler *remoteworkitem.Scheduler, configuration trackerConfiguration) *TrackerController
NewTrackerController creates a tracker controller.
func (*TrackerController) Create ¶
func (c *TrackerController) Create(ctx *app.CreateTrackerContext) error
Create runs the create action.
func (*TrackerController) Delete ¶
func (c *TrackerController) Delete(ctx *app.DeleteTrackerContext) error
Delete runs the delete action.
func (*TrackerController) List ¶
func (c *TrackerController) List(ctx *app.ListTrackerContext) error
List runs the list action.
func (*TrackerController) Show ¶
func (c *TrackerController) Show(ctx *app.ShowTrackerContext) error
Show runs the show action.
func (*TrackerController) Update ¶
func (c *TrackerController) Update(ctx *app.UpdateTrackerContext) error
Update runs the update action.
type TrackerqueryController ¶
type TrackerqueryController struct { *goa.Controller // contains filtered or unexported fields }
TrackerqueryController implements the trackerquery resource.
func NewTrackerqueryController ¶
func NewTrackerqueryController(service *goa.Service, db application.DB, scheduler *remoteworkitem.Scheduler, configuration trackerQueryConfiguration) *TrackerqueryController
NewTrackerqueryController creates a trackerquery controller.
func (*TrackerqueryController) Create ¶
func (c *TrackerqueryController) Create(ctx *app.CreateTrackerqueryContext) error
Create runs the create action.
func (*TrackerqueryController) Delete ¶
func (c *TrackerqueryController) Delete(ctx *app.DeleteTrackerqueryContext) error
Delete runs the delete action.
func (*TrackerqueryController) List ¶
func (c *TrackerqueryController) List(ctx *app.ListTrackerqueryContext) error
List runs the list action.
func (*TrackerqueryController) Show ¶
func (c *TrackerqueryController) Show(ctx *app.ShowTrackerqueryContext) error
Show runs the show action.
func (*TrackerqueryController) Update ¶
func (c *TrackerqueryController) Update(ctx *app.UpdateTrackerqueryContext) error
Update runs the update action.
type UserController ¶
type UserController struct { *goa.Controller InitTenant func(context.Context) error // contains filtered or unexported fields }
UserController implements the user resource.
func NewUserController ¶
func NewUserController(service *goa.Service, config UserControllerConfiguration) *UserController
NewUserController creates a user controller.
func (*UserController) Show ¶
func (c *UserController) Show(ctx *app.ShowUserContext) error
Show returns the authorized user based on the provided Token
type UserControllerConfiguration ¶
type UserControllerConfiguration interface { auth.ServiceConfiguration GetCacheControlUser() string }
UserControllerConfiguration the configuration for the UserController
type UserServiceController ¶
type UserServiceController struct { *goa.Controller UpdateTenant func(context.Context) error CleanTenant func(context.Context, bool) error ShowTenant func(context.Context) (*tenant.TenantSingle, error) }
UserServiceController implements the UserService resource.
func NewUserServiceController ¶
func NewUserServiceController(service *goa.Service) *UserServiceController
NewUserServiceController creates a UserService controller.
func (*UserServiceController) Clean ¶
func (c *UserServiceController) Clean(ctx *app.CleanUserServiceContext) error
Clean runs the clean action.
func (*UserServiceController) Show ¶
func (c *UserServiceController) Show(ctx *app.ShowUserServiceContext) error
Show runs the show action.
func (*UserServiceController) Update ¶
func (c *UserServiceController) Update(ctx *app.UpdateUserServiceContext) error
Update runs the update action.
type UsersController ¶
type UsersController struct { *goa.Controller // contains filtered or unexported fields }
UsersController implements the users resource.
func NewUsersController ¶
func NewUsersController(service *goa.Service, db application.DB, config UsersControllerConfiguration) *UsersController
NewUsersController creates a users controller.
func (*UsersController) CreateUserAsServiceAccount ¶
func (c *UsersController) CreateUserAsServiceAccount(ctx *app.CreateUserAsServiceAccountUsersContext) error
CreateUserAsServiceAccount updates a user when requested using a service account token
func (*UsersController) List ¶
func (c *UsersController) List(ctx *app.ListUsersContext) error
List runs the list action.
func (*UsersController) Show ¶
func (c *UsersController) Show(ctx *app.ShowUsersContext) error
Show runs the show action.
func (*UsersController) Update ¶
func (c *UsersController) Update(ctx *app.UpdateUsersContext) error
Update updates the authorized user based on the provided Token
func (*UsersController) UpdateUserAsServiceAccount ¶
func (c *UsersController) UpdateUserAsServiceAccount(ctx *app.UpdateUserAsServiceAccountUsersContext) error
UpdateUserAsServiceAccount updates a user when requested using a service account token
type UsersControllerConfiguration ¶
type UsersControllerConfiguration interface { auth.ServiceConfiguration GetCacheControlUsers() string GetCacheControlUser() string GetKeycloakAccountEndpoint(*http.Request) (string, error) }
UsersControllerConfiguration the configuration for the UsersController
type UserspaceController ¶
type UserspaceController struct { *goa.Controller // contains filtered or unexported fields }
UserspaceController implements the userspace resource.
func NewUserspaceController ¶
func NewUserspaceController(service *goa.Service, db *gorm.DB) *UserspaceController
NewUserspaceController creates a userspace controller.
func (*UserspaceController) Create ¶
func (c *UserspaceController) Create(ctx *app.CreateUserspaceContext) error
Create runs the create action.
func (*UserspaceController) Show ¶
func (c *UserspaceController) Show(ctx *app.ShowUserspaceContext) error
Show shows the record
type WitClient ¶
type WitClient interface { ShowSpace(ctx context.Context, path string, ifModifiedSince *string, ifNoneMatch *string) (*http.Response, error) ShowUserService(ctx context.Context, path string) (*http.Response, error) }
WitClient is an interface for mocking the witclient.Client
type WorkItemCommentsController ¶
type WorkItemCommentsController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemCommentsController implements the work-item-comments resource.
func NewNotifyingWorkItemCommentsController ¶
func NewNotifyingWorkItemCommentsController(service *goa.Service, db application.DB, notificationChannel notification.Channel, config WorkItemCommentsControllerConfiguration) *WorkItemCommentsController
NewNotifyingWorkItemCommentsController creates a work-item-relationships-comments controller.
func NewWorkItemCommentsController ¶
func NewWorkItemCommentsController(service *goa.Service, db application.DB, config WorkItemCommentsControllerConfiguration) *WorkItemCommentsController
NewWorkItemCommentsController creates a work-item-relationships-comments controller.
func (*WorkItemCommentsController) Create ¶
func (c *WorkItemCommentsController) Create(ctx *app.CreateWorkItemCommentsContext) error
Create runs the create action.
func (*WorkItemCommentsController) List ¶
func (c *WorkItemCommentsController) List(ctx *app.ListWorkItemCommentsContext) error
List runs the list action.
func (*WorkItemCommentsController) Relations ¶
func (c *WorkItemCommentsController) Relations(ctx *app.RelationsWorkItemCommentsContext) error
Relations runs the relation action. TODO: Should only return Resource Identifier Objects, not complete object (See List)
type WorkItemCommentsControllerConfiguration ¶
type WorkItemCommentsControllerConfiguration interface {
GetCacheControlComments() string
}
WorkItemCommentsControllerConfiguration configuration for the WorkItemCommentsController
type WorkItemControllerConfig ¶
type WorkItemControllerConfig interface { GetCacheControlWorkItems() string GetCacheControlWorkItem() string }
WorkItemControllerConfig the config interface for the WorkitemController
type WorkItemConvertFunc ¶
WorkItemConvertFunc is a open ended function to add additional links/data/relations to a Comment during conversion from internal to API
type WorkItemInterfaceSlice ¶
type WorkItemInterfaceSlice []interface{}
WorkItemInterfaceSlice exists in order to allow sorting results in a search response.
func (WorkItemInterfaceSlice) Len ¶
func (a WorkItemInterfaceSlice) Len() int
Len is the number of elements in the collection.
func (WorkItemInterfaceSlice) Less ¶
func (a WorkItemInterfaceSlice) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
NOTE: For now we assume that included elements in the search response are only work items. We can handle work items as pointers or objects. Both options are possible.
func (WorkItemInterfaceSlice) Swap ¶
func (a WorkItemInterfaceSlice) Swap(i, j int)
Swap swaps the elements with indexes i and j.
type WorkItemLabelsController ¶
type WorkItemLabelsController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemLabelsController implements the work_item_labels resource.
func NewWorkItemLabelsController ¶
func NewWorkItemLabelsController(service *goa.Service, db application.DB, config WorkItemLabelsControllerConfiguration) *WorkItemLabelsController
NewWorkItemLabelsController creates a work_item_labels controller.
func (*WorkItemLabelsController) List ¶
func (c *WorkItemLabelsController) List(ctx *app.ListWorkItemLabelsContext) error
List runs the list action.
type WorkItemLabelsControllerConfiguration ¶
type WorkItemLabelsControllerConfiguration interface {
GetCacheControlLabels() string
}
WorkItemLabelsControllerConfiguration configuration for the WorkItemLabelsController
type WorkItemLinkCategoryController ¶
type WorkItemLinkCategoryController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemLinkCategoryController implements the work-item-link-category resource.
func NewWorkItemLinkCategoryController ¶
func NewWorkItemLinkCategoryController(service *goa.Service, db application.DB) *WorkItemLinkCategoryController
NewWorkItemLinkCategoryController creates a WorkItemLinkCategoryController.
func (*WorkItemLinkCategoryController) List ¶
func (c *WorkItemLinkCategoryController) List(ctx *app.ListWorkItemLinkCategoryContext) error
List runs the list action.
func (*WorkItemLinkCategoryController) Show ¶
func (c *WorkItemLinkCategoryController) Show(ctx *app.ShowWorkItemLinkCategoryContext) error
Show runs the show action.
type WorkItemLinkController ¶
type WorkItemLinkController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemLinkController implements the work-item-link resource.
func NewWorkItemLinkController ¶
func NewWorkItemLinkController(service *goa.Service, db application.DB, config WorkItemLinkControllerConfig) *WorkItemLinkController
NewWorkItemLinkController creates a work-item-link controller.
func (*WorkItemLinkController) Create ¶
func (c *WorkItemLinkController) Create(ctx *app.CreateWorkItemLinkContext) error
Create runs the create action.
func (*WorkItemLinkController) Delete ¶
func (c *WorkItemLinkController) Delete(ctx *app.DeleteWorkItemLinkContext) error
Delete runs the delete action
func (*WorkItemLinkController) Show ¶
func (c *WorkItemLinkController) Show(ctx *app.ShowWorkItemLinkContext) error
Show runs the show action.
type WorkItemLinkControllerConfig ¶
type WorkItemLinkControllerConfig interface { GetCacheControlWorkItemLinks() string GetCacheControlWorkItemLink() string }
WorkItemLinkControllerConfig the config interface for the WorkitemLinkController
type WorkItemLinkTypeController ¶
type WorkItemLinkTypeController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemLinkTypeController implements the work-item-link-type resource.
func NewWorkItemLinkTypeController ¶
func NewWorkItemLinkTypeController(service *goa.Service, db application.DB, config WorkItemLinkTypeControllerConfiguration) *WorkItemLinkTypeController
NewWorkItemLinkTypeController creates a work-item-link-type controller.
func (*WorkItemLinkTypeController) Show ¶
func (c *WorkItemLinkTypeController) Show(ctx *app.ShowWorkItemLinkTypeContext) error
Show runs the show action.
type WorkItemLinkTypeControllerConfiguration ¶
type WorkItemLinkTypeControllerConfiguration interface { GetCacheControlWorkItemLinkTypes() string GetCacheControlWorkItemLinkType() string }
WorkItemLinkTypeControllerConfiguration the configuration for the WorkItemLinkTypeController
type WorkItemLinkTypesController ¶
type WorkItemLinkTypesController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemLinkTypesController implements the work-item-link-type resource.
func NewWorkItemLinkTypesController ¶
func NewWorkItemLinkTypesController(service *goa.Service, db application.DB, config WorkItemLinkTypesControllerConfiguration) *WorkItemLinkTypesController
NewWorkItemLinkTypesController creates a work-item-link-type controller.
func (*WorkItemLinkTypesController) List ¶
func (c *WorkItemLinkTypesController) List(ctx *app.ListWorkItemLinkTypesContext) error
List runs the list action.
type WorkItemLinkTypesControllerConfiguration ¶
type WorkItemLinkTypesControllerConfiguration interface { GetCacheControlWorkItemLinkTypes() string GetCacheControlWorkItemLinkType() string }
WorkItemLinkTypesControllerConfiguration the configuration for the WorkItemLinkTypesController
type WorkItemPtrSlice ¶
WorkItemPtrSlice exists in order to allow sorting results in a search response.
func (WorkItemPtrSlice) Len ¶
func (a WorkItemPtrSlice) Len() int
Len is the number of elements in the collection.
func (WorkItemPtrSlice) Less ¶
func (a WorkItemPtrSlice) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (WorkItemPtrSlice) Swap ¶
func (a WorkItemPtrSlice) Swap(i, j int)
Swap swaps the elements with indexes i and j.
type WorkItemRelationshipsLinksController ¶
type WorkItemRelationshipsLinksController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemRelationshipsLinksController implements the work-item-relationships-links resource.
func NewWorkItemRelationshipsLinksController ¶
func NewWorkItemRelationshipsLinksController(service *goa.Service, db application.DB, config WorkItemRelationshipsLinksControllerConfig) *WorkItemRelationshipsLinksController
NewWorkItemRelationshipsLinksController creates a work-item-relationships-links controller.
func (*WorkItemRelationshipsLinksController) List ¶
func (c *WorkItemRelationshipsLinksController) List(ctx *app.ListWorkItemRelationshipsLinksContext) error
List runs the list action.
type WorkItemRelationshipsLinksControllerConfig ¶
type WorkItemRelationshipsLinksControllerConfig interface {
GetCacheControlWorkItemLinks() string
}
WorkItemRelationshipsLinksControllerConfig the config interface for the WorkItemRelationshipsLinksController
type WorkItemTypeGroupController ¶
type WorkItemTypeGroupController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemTypeGroupController implements the work_item_type_group resource.
func NewWorkItemTypeGroupController ¶
func NewWorkItemTypeGroupController(service *goa.Service, db application.DB) *WorkItemTypeGroupController
NewWorkItemTypeGroupController creates a work_item_type_group controller.
func (*WorkItemTypeGroupController) Show ¶
func (c *WorkItemTypeGroupController) Show(ctx *app.ShowWorkItemTypeGroupContext) error
Show runs the list action.
type WorkItemTypeGroupsController ¶
type WorkItemTypeGroupsController struct { *goa.Controller // contains filtered or unexported fields }
WorkItemTypeGroupsController implements the work_item_type_groups resource.
func NewWorkItemTypeGroupsController ¶
func NewWorkItemTypeGroupsController(service *goa.Service, db application.DB) *WorkItemTypeGroupsController
NewWorkItemTypeGroupsController creates a work_item_type_groups controller.
func (*WorkItemTypeGroupsController) List ¶
func (c *WorkItemTypeGroupsController) List(ctx *app.ListWorkItemTypeGroupsContext) error
List runs the list action.
type WorkitemController ¶
type WorkitemController struct { *goa.Controller // contains filtered or unexported fields }
WorkitemController implements the workitem resource.
func NewNotifyingWorkitemController ¶
func NewNotifyingWorkitemController(service *goa.Service, db application.DB, notificationChannel notification.Channel, config WorkItemControllerConfig) *WorkitemController
NewNotifyingWorkitemController creates a workitem controller with notification broadcast.
func NewWorkitemController ¶
func NewWorkitemController(service *goa.Service, db application.DB, config WorkItemControllerConfig) *WorkitemController
NewWorkitemController creates a workitem controller.
func (*WorkitemController) Delete ¶
func (c *WorkitemController) Delete(ctx *app.DeleteWorkitemContext) error
Delete does DELETE workitem
func (*WorkitemController) ListChildren ¶
func (c *WorkitemController) ListChildren(ctx *app.ListChildrenWorkitemContext) error
ListChildren runs the list action.
func (*WorkitemController) Show ¶
func (c *WorkitemController) Show(ctx *app.ShowWorkitemContext) error
Show does GET workitem
func (*WorkitemController) Update ¶
func (c *WorkitemController) Update(ctx *app.UpdateWorkitemContext) error
Update does PATCH workitem
type WorkitemsController ¶
type WorkitemsController struct { *goa.Controller // contains filtered or unexported fields }
WorkitemsController implements the workitems resource.
func NewNotifyingWorkitemsController ¶
func NewNotifyingWorkitemsController(service *goa.Service, db application.DB, notificationChannel notification.Channel, config WorkItemControllerConfig) *WorkitemsController
NewNotifyingWorkitemsController creates a workitem controller with notification broadcast.
func NewWorkitemsController ¶
func NewWorkitemsController(service *goa.Service, db application.DB, config WorkItemControllerConfig) *WorkitemsController
NewWorkitemsController creates a workitems controller.
func (*WorkitemsController) Create ¶
func (c *WorkitemsController) Create(ctx *app.CreateWorkitemsContext) error
Create does POST workitem
func (*WorkitemsController) List ¶
func (c *WorkitemsController) List(ctx *app.ListWorkitemsContext) error
List runs the list action. Prev and Next links will be present only when there actually IS a next or previous page. Last will always be present. Total Item count needs to be computed from the "Last" link.
func (*WorkitemsController) Reorder ¶
func (c *WorkitemsController) Reorder(ctx *app.ReorderWorkitemsContext) error
Reorder does PATCH workitem
type WorkitemtypeController ¶
type WorkitemtypeController struct { *goa.Controller // contains filtered or unexported fields }
WorkitemtypeController implements the workitemtype resource.
func NewWorkitemtypeController ¶
func NewWorkitemtypeController(service *goa.Service, db application.DB, config workItemTypeControllerConfiguration) *WorkitemtypeController
NewWorkitemtypeController creates a workitemtype controller.
func (*WorkitemtypeController) Show ¶
func (c *WorkitemtypeController) Show(ctx *app.ShowWorkitemtypeContext) error
Show runs the show action.
type WorkitemtypesController ¶
type WorkitemtypesController struct { *goa.Controller // contains filtered or unexported fields }
WorkitemtypesController implements the workitemtype resource.
func NewWorkitemtypesController ¶
func NewWorkitemtypesController(service *goa.Service, db application.DB, config workItemTypesControllerConfiguration) *WorkitemtypesController
NewWorkitemtypesController creates a workitemtype controller.
func (*WorkitemtypesController) List ¶
func (c *WorkitemtypesController) List(ctx *app.ListWorkitemtypesContext) error
List runs the list action
Source Files ¶
- area.go
- codebase.go
- collaborators.go
- comments.go
- deployments.go
- deployments_osioclient.go
- deployments_urlprovider.go
- features.go
- filter.go
- iteration.go
- label.go
- login.go
- logout.go
- named_work_items.go
- namedspaces.go
- paging.go
- permission.go
- planner_backlog.go
- query.go
- render.go
- search.go
- space.go
- space_areas.go
- space_codebases.go
- space_iterations.go
- space_template.go
- status.go
- tracker.go
- trackerquery.go
- user.go
- user_service.go
- users.go
- userspace.go
- work_item_comments.go
- work_item_labels.go
- work_item_link.go
- work_item_link_category.go
- work_item_link_type.go
- work_item_link_types.go
- work_item_relationships_links.go
- work_item_type_group.go
- work_item_type_groups.go
- workitem.go
- workitems.go
- workitemtype.go
- workitemtypes.go