controller

package
v42.0.0-...-56f38d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIStringTypeCodebase contains the JSON API type for codebases
	APIStringTypeCodebase = "codebases"
	// APIStringTypeWorkspace contains the JSON API type for worksapces
	APIStringTypeWorkspace = "workspaces"
)
View Source
const (
	RenderingType = "rendering"
	RenderedValue = "value"
)
View Source
const (
	APIStringTypeUser         = "identities"
	APIStringTypeWorkItem     = "workitems"
	APIStringTypeWorkItemType = "workitemtypes"
)

Defines the constants to be used in json api "type" attribute

View Source
const (
	// APIStringTypeCodebase contains the JSON API type for codebases
	APIStringTypeSpace = "spaces"
)
View Source
const APIWorkItemTypeGroups = "workitemtypegroups"

Variables

View Source
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")
)
View Source
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, ref HrefFunc, parentType string)

CommentIncludeParent adds the "parent" relationship to this Comment

func ConvertArea

func ConvertArea(appl application.Application, request *http.Request, ar area.Area, additional ...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(appl application.Application, 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, additional ...CodebaseConvertFunc) *app.Codebase

ConvertCodebase converts between internal and external REST representation

func ConvertCodebases

func ConvertCodebases(request *http.Request, codebases []*codebase.Codebase, additional ...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 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, spaceID uuid.UUID) error

ConvertJSONAPIToWorkItem is responsible for converting given WorkItem model object into a response resource object by jsonapi.org specifications

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(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 ConvertSpaceFromModel

func ConvertSpaceFromModel(ctx context.Context, db application.DB, request *http.Request, sp space.Space, additional ...SpaceConvertFunc) (*app.Space, error)

ConvertSpaceFromModel converts between internal and external REST representation

func ConvertSpaceToModel

func ConvertSpaceToModel(appSpace app.Space) space.Space

ConvertSpaceToModel converts an `app.Space` to a `space.Space`

func ConvertSpacesFromModel

func ConvertSpacesFromModel(ctx context.Context, db application.DB, request *http.Request, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error)

ConvertSpacesFromModel converts between internal and external REST representation

func ConvertToAppUser

func ConvertToAppUser(request *http.Request, user *account.User, identity *account.Identity) *app.User

ConvertToAppUser converts a complete Identity object into REST representation

func ConvertTypeGroup

func ConvertTypeGroup(request *http.Request, tg typegroup.WorkItemTypeGroup) *app.WorkItemTypeGroup

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, wi workitem.WorkItem, additional ...WorkItemConvertFunc) *app.WorkItem

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, wis []workitem.WorkItem, additional ...WorkItemConvertFunc) []*app.WorkItem

ConvertWorkItems is responsible for converting given []WorkItem model object into a response resource object by jsonapi.org specifications

func CreateCommentsRelation

func CreateCommentsRelation(request *http.Request, wi *workitem.WorkItem) *app.RelationGeneric

CreateCommentsRelation returns a RelationGeneric object representing the relation for a workitem to comment relation

func CreateCommentsRelationLinks(request *http.Request, wi *workitem.WorkItem) *app.GenericLinks

CreateCommentsRelationLinks returns a RelationGeneric object representing the links for a workitem to comment relation

func GenerateUserToken

func GenerateUserToken(ctx context.Context, tokenEndpoint string, configuration loginConfiguration, username string, userSecret string) (*app.AuthToken, error)

GenerateUserToken obtains the access token from Keycloak for the user

func GetAccessTokens

func GetAccessTokens(configuration trackerConfiguration) map[string]string

func LoadKeyCloakIdentities

func LoadKeyCloakIdentities(appl application.Application, users []account.User) ([]account.User, []account.Identity, error)

LoadKeyCloakIdentities loads keycloak identities for the users and returns the valid users along with their KC identities (if a user is missing his/her KC identity, he/she is filtered out of the result array)

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

type AreaConvertFunc func(application.Application, *http.Request, *area.Area, *app.Area) error

AreaConvertFunc is a open ended function to add additional links/data/relations to a area during convertion from internal to API

type CodebaseController

type CodebaseController struct {
	*goa.Controller

	ShowTenant func(context.Context) (*tenant.TenantSingle, error)
	// 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

CheStart starts server if not running.

func (*CodebaseController) CheState

CheState gets che server state.

func (*CodebaseController) Create

Create runs the create action.

func (*CodebaseController) Edit

Edit runs the edit action.

func (*CodebaseController) Open

Open runs the open action.

func (*CodebaseController) Show

Show runs the show action.

type CodebaseConvertFunc

type CodebaseConvertFunc func(*http.Request, *codebase.Codebase, *app.Codebase)

CodebaseConvertFunc is a open ended function to add additional links/data/relations to a Codebase during convertion from internal to API

type CollaboratorsConfiguration

type CollaboratorsConfiguration interface {
	GetKeycloakEndpointEntitlement(*http.Request) (string, error)
	GetCacheControlCollaborators() string
	IsAuthorizationEnabled() bool
}

type CollaboratorsController

type CollaboratorsController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

CollaboratorsController implements the collaborators resource.

func NewCollaboratorsController

func NewCollaboratorsController(service *goa.Service, db application.DB, config CollaboratorsConfiguration, policyManager auth.AuthzPolicyManager) *CollaboratorsController

NewCollaboratorsController creates a collaborators controller.

func (*CollaboratorsController) Add

Add user's identity to the list of space collaborators.

func (*CollaboratorsController) AddMany

AddMany adds user's identities to the list of space collaborators.

func (*CollaboratorsController) List

List collaborators for the given space ID.

func (*CollaboratorsController) Remove

Remove user from the list of space collaborators.

func (*CollaboratorsController) RemoveMany

RemoveMany removes users from the list of space collaborators.

type CommentConvertFunc

type CommentConvertFunc func(*http.Request, *comment.Comment, *app.Comment)

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, appl application.Application, c *comment.Comment) (CommentConvertFunc, error)

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

Delete does DELETE comment

func (*CommentsController) Show

Show runs the show action.

func (*CommentsController) Update

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

func (Data) TableName

func (w Data) TableName() string

TableName implements gorm.tabler

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

List runs the list action.

type FilterControllerConfiguration

type FilterControllerConfiguration interface {
	GetCacheControlFilters() string
}

FilterControllerConfiguration the configuration for the FilterController.

type FilterEtagData

type FilterEtagData struct {
	Type  string
	Query string
}

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 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

CreateChild runs the create-child action.

func (*IterationController) Show

Show runs the show action.

func (*IterationController) Update

Update runs the update action.

type IterationControllerConfiguration

type IterationControllerConfiguration interface {
	GetCacheControlIterations() string
	GetCacheControlIteration() string
}

type IterationConvertFunc

type IterationConvertFunc func(*http.Request, *iteration.Iteration, *app.Iteration)

IterationConvertFunc is a open ended function to add additional links/data/relations to a Iteration during conversion from internal to API

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, tokenManager token.Manager, 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 obtain the access token from Keycloak for the test user

func (c *LoginController) Link(ctx *app.LinkLoginContext) error

Link links identity provider(s) to the user's account

func (*LoginController) Linkcallback

func (c *LoginController) Linkcallback(ctx *app.LinkcallbackLoginContext) error

Linkcallback redirects to original referel when Identity Provider account are linked to the user account

func (*LoginController) Linksession

func (c *LoginController) Linksession(ctx *app.LinksessionLoginContext) error

Linksession links identity provider(s) to the user's account

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, logoutService *login.KeycloakLogoutService, configuration logoutConfiguration) *LogoutController

NewLogoutController creates a logout controller.

func (*LogoutController) Logout

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

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 (*NamedspacesController) Show

Show runs the show action.

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

type PlannerBacklogControllerConfig

type PlannerBacklogControllerConfig interface {
	GetCacheControlWorkItems() string
}

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

Render runs the render action.

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) Show

Show runs the show action.

func (*SearchController) Spaces

Spaces runs the space search action.

func (*SearchController) Users

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

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

Create runs the create action.

func (*SpaceCodebasesController) List

List runs the list action.

type SpaceConfiguration

type SpaceConfiguration interface {
	GetKeycloakEndpointAuthzResourceset(*http.Request) (string, error)
	GetKeycloakEndpointToken(*http.Request) (string, error)
	GetKeycloakEndpointClients(*http.Request) (string, error)
	GetKeycloakEndpointAdmin(*http.Request) (string, error)
	GetKeycloakClientID() string
	GetKeycloakSecret() string
	GetCacheControlSpaces() string
	GetCacheControlSpace() string
}

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

type SpaceConvertFunc func(*http.Request, *space.Space, *app.Space)

SpaceConvertFunc is a open ended function to add additional links/data/relations to a Space during conversion from internal to API

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

Create runs the create action.

func (*SpaceIterationsController) List

List runs the list action.

type SpaceIterationsControllerConfiguration

type SpaceIterationsControllerConfiguration interface {
	GetCacheControlIterations() string
}

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) *SpaceTemplateController

NewSpaceTemplateController creates a space_template controller.

func (*SpaceTemplateController) Show

Show runs the show action.

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

Show runs the show action.

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

Create runs the create action.

func (*TrackerController) Delete

Delete runs the delete action.

func (*TrackerController) List

List runs the list action.

func (*TrackerController) Show

Show runs the show action.

func (*TrackerController) Update

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

Create runs the create action.

func (*TrackerqueryController) Delete

Delete runs the delete action.

func (*TrackerqueryController) List

List runs the list action.

func (*TrackerqueryController) Show

Show runs the show action.

func (*TrackerqueryController) Update

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, db application.DB, tokenManager token.Manager, 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 {
	GetCacheControlUser() string
}

UserControllerConfiguration the configuration for the UserController

type UserServiceController

type UserServiceController struct {
	*goa.Controller
	UpdateTenant func(context.Context) error
	CleanTenant  func(context.Context) 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

Clean runs the clean action.

func (*UserServiceController) Show

Show runs the show action.

func (*UserServiceController) Update

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, userProfileService login.UserProfileService) *UsersController

NewUsersController creates a users controller.

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

type UsersControllerConfiguration

type UsersControllerConfiguration interface {
	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

Create runs the create action.

func (*UserspaceController) Show

Show shows the record

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

Create runs the create action.

func (*WorkItemCommentsController) List

List runs the list action.

func (*WorkItemCommentsController) Relations

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 WorkItemControllerConfiguration

type WorkItemControllerConfiguration interface {
	GetCacheControlWorkItemTypes() string
	GetCacheControlWorkItemType() string
}

type WorkItemConvertFunc

type WorkItemConvertFunc func(*http.Request, *workitem.WorkItem, *app.WorkItem)

WorkItemConvertFunc is a open ended function to add additional links/data/relations to a Comment during conversion from internal to API

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) Create

Create runs the create action.

func (*WorkItemLinkCategoryController) Delete

Delete runs the delete action.

func (*WorkItemLinkCategoryController) List

List runs the list action.

func (*WorkItemLinkCategoryController) Show

Show runs the show action.

func (*WorkItemLinkCategoryController) Update

Update runs the update 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

Create runs the create action.

func (*WorkItemLinkController) Delete

Delete runs the delete action

func (*WorkItemLinkController) Show

Show runs the show action.

func (*WorkItemLinkController) Update

Update runs the update 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) Create

Create runs the create action.

func (*WorkItemLinkTypeController) Delete

Delete runs the delete action.

func (*WorkItemLinkTypeController) List

List runs the list action.

func (*WorkItemLinkTypeController) Show

Show runs the show action.

func (*WorkItemLinkTypeController) Update

Update runs the update action.

type WorkItemLinkTypeControllerConfiguration

type WorkItemLinkTypeControllerConfiguration interface {
	GetCacheControlWorkItemLinkTypes() string
	GetCacheControlWorkItemLinkType() string
}

WorkItemLinkTypeControllerConfiguration the configuration for the WorkItemLinkTypeController

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) Create

Create runs the create action.

func (*WorkItemRelationshipsLinksController) List

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) List

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

Delete does DELETE workitem

func (*WorkitemController) ListChildren

ListChildren runs the list action.

func (*WorkitemController) Show

Show does GET workitem

func (*WorkitemController) Update

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

Create does POST workitem

func (*WorkitemsController) List

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

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 WorkItemControllerConfiguration) *WorkitemtypeController

NewWorkitemtypeController creates a workitemtype controller.

func (*WorkitemtypeController) Create

Create runs the create action.

func (*WorkitemtypeController) List

List runs the list action

func (*WorkitemtypeController) Show

Show runs the show action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL