controller

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 44 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"
)

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 *goa.RequestData, 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 *goa.RequestData, ar area.Area, additional ...AreaConvertFunc) *app.Area

ConvertArea converts between internal and external REST representation

func ConvertAreaSimple

func ConvertAreaSimple(request *goa.RequestData, id interface{}) *app.GenericData

ConvertAreaSimple converts a simple area ID into a Generic Reletionship

func ConvertAreas

func ConvertAreas(appl application.Application, request *goa.RequestData, areas []area.Area, additional ...AreaConvertFunc) []*app.Area

ConvertAreas converts between internal and external REST representation

func ConvertCodebase

func ConvertCodebase(request *goa.RequestData, codebase *codebase.Codebase, additional ...CodebaseConvertFunc) *app.Codebase

ConvertCodebase converts between internal and external REST representation

func ConvertCodebases

func ConvertCodebases(request *goa.RequestData, codebases []*codebase.Codebase, additional ...CodebaseConvertFunc) []*app.Codebase

ConvertCodebases converts between internal and external REST representation

func ConvertComment

func ConvertComment(request *goa.RequestData, comment comment.Comment, additional ...CommentConvertFunc) *app.Comment

ConvertComment converts between internal and external REST representation

func ConvertCommentResourceID

func ConvertCommentResourceID(request *goa.RequestData, comment comment.Comment, additional ...CommentConvertFunc) *app.Comment

ConvertCommentResourceID converts between internal and external REST representation, ResourceIdentificationObject only

func ConvertComments

func ConvertComments(request *goa.RequestData, comments []comment.Comment, additional ...CommentConvertFunc) []*app.Comment

ConvertComments converts between internal and external REST representation

func ConvertCommentsResourceID

func ConvertCommentsResourceID(request *goa.RequestData, 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 *goa.RequestData, itr iteration.Iteration, additional ...IterationConvertFunc) *app.Iteration

ConvertIteration converts between internal and external REST representation

func ConvertIterationSimple

func ConvertIterationSimple(request *goa.RequestData, id interface{}) *app.GenericData

ConvertIterationSimple converts a simple Iteration ID into a Generic Reletionship

func ConvertIterations

func ConvertIterations(request *goa.RequestData, Iterations []iteration.Iteration, additional ...IterationConvertFunc) []*app.Iteration

ConvertIterations converts between internal and external REST representation

func ConvertJSONAPIToWorkItem

func ConvertJSONAPIToWorkItem(ctx context.Context, 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 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 *goa.RequestData, modelLinkTypes []link.WorkItemLinkType) (*app.WorkItemLinkTypeList, error)

func ConvertSpaceFromModel

func ConvertSpaceFromModel(ctx context.Context, db application.DB, request *goa.RequestData, 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 *goa.RequestData, spaces []space.Space, additional ...SpaceConvertFunc) ([]*app.Space, error)

ConvertSpacesFromModel converts between internal and external REST representation

func ConvertToAppUser

func ConvertToAppUser(request *goa.RequestData, user *account.User, identity *account.Identity) *app.User

ConvertToAppUser converts a complete Identity object into REST representation

func ConvertUserSimple

func ConvertUserSimple(request *goa.RequestData, identityID interface{}) *app.GenericData

ConvertUserSimple converts a simple Identity ID into a Generic Reletionship

func ConvertUsersSimple

func ConvertUsersSimple(request *goa.RequestData, identityIDs []interface{}) []*app.GenericData

ConvertUsersSimple converts a array of simple Identity IDs into a Generic Reletionship List

func ConvertWorkItem

func ConvertWorkItem(request *goa.RequestData, 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 *goa.RequestData, 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 *goa.RequestData, t *workitem.WorkItemType) app.WorkItemTypeData

converts from models to app representation

func ConvertWorkItems

func ConvertWorkItems(request *goa.RequestData, 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 *goa.RequestData, wi *workitem.WorkItem) *app.RelationGeneric

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

func CreateCommentsRelationLinks(request *goa.RequestData, 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
}

AreaControllerConfiguration the configuration for the AreaController

type AreaConvertFunc

type AreaConvertFunc func(application.Application, *goa.RequestData, *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
	// 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) 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(*goa.RequestData, *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 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(*goa.RequestData, *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 (*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
}

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
}

type IterationConvertFunc

type IterationConvertFunc func(*goa.RequestData, *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) *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 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 RedirectWorkItemLinkTypeController

type RedirectWorkItemLinkTypeController struct {
	*goa.Controller
}

RedirectWorkItemLinkTypeController implements the redirect_work_item_link_type resource.

func NewRedirectWorkItemLinkTypeController

func NewRedirectWorkItemLinkTypeController(service *goa.Service) *RedirectWorkItemLinkTypeController

NewRedirectWorkItemLinkTypeController creates a redirect_work_item_link_type controller.

func (*RedirectWorkItemLinkTypeController) Create

Create runs the create action.

func (*RedirectWorkItemLinkTypeController) Delete

Delete runs the delete action.

func (*RedirectWorkItemLinkTypeController) List

List runs the list action.

func (*RedirectWorkItemLinkTypeController) Show

Show runs the show action.

func (*RedirectWorkItemLinkTypeController) Update

Update runs the update action.

type RedirectWorkitemController

type RedirectWorkitemController struct {
	*goa.Controller
}

RedirectWorkitemController implements the redirect_workitem resource.

func NewRedirectWorkitemController

func NewRedirectWorkitemController(service *goa.Service) *RedirectWorkitemController

NewRedirectWorkitemController creates a redirect_workitem controller.

func (*RedirectWorkitemController) Create

Create runs the create action.

func (*RedirectWorkitemController) Delete

Delete runs the delete action.

func (*RedirectWorkitemController) List

List runs the list action.

func (*RedirectWorkitemController) Reorder

Reorder runs the reorder action.

func (*RedirectWorkitemController) Show

Show runs the show action.

func (*RedirectWorkitemController) Update

Update runs the update action.

type RedirectWorkitemtypeController

type RedirectWorkitemtypeController struct {
	*goa.Controller
}

RedirectWorkitemtypeController implements the redirect_workitemtype resource.

func NewRedirectWorkitemtypeController

func NewRedirectWorkitemtypeController(service *goa.Service) *RedirectWorkitemtypeController

NewRedirectWorkitemtypeController creates a redirect_workitemtype controller.

func (*RedirectWorkitemtypeController) Create

Create runs the create action.

func (*RedirectWorkitemtypeController) List

List runs the list action.

func (*RedirectWorkitemtypeController) ListSourceLinkTypes

ListSourceLinkTypes runs the list-source-link-types action.

func (*RedirectWorkitemtypeController) ListTargetLinkTypes

ListTargetLinkTypes runs the list-target-link-types action.

func (*RedirectWorkitemtypeController) Show

Show runs the show action.

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(*goa.RequestData) (string, error)
	GetKeycloakEndpointToken(*goa.RequestData) (string, error)
	GetKeycloakEndpointClients(*goa.RequestData) (string, error)
	GetKeycloakEndpointAdmin(*goa.RequestData) (string, error)
	GetKeycloakClientID() string
	GetKeycloakSecret() string
	GetCacheControlSpaces() 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.AuthzResourceManager) *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(*goa.RequestData, *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 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
}

UserServiceController implements the UserService resource.

func NewUserServiceController

func NewUserServiceController(service *goa.Service) *UserServiceController

NewUserServiceController creates a UserService controller.

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
	GetKeycloakAccountEndpoint(*goa.RequestData) (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 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
}

type WorkItemControllerConfig

type WorkItemControllerConfig interface {
	GetCacheControlWorkItems() string
}

WorkItemControllerConfig the config interface for the WorkitemController

type WorkItemControllerConfiguration

type WorkItemControllerConfiguration interface {
	GetCacheControlWorkItemTypes() string
}

type WorkItemConvertFunc

type WorkItemConvertFunc func(*goa.RequestData, *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) List

List runs the list action.

func (*WorkItemLinkController) Show

Show runs the show action.

func (*WorkItemLinkController) Update

Update runs the update action.

type WorkItemLinkControllerConfig

type WorkItemLinkControllerConfig interface {
	GetCacheControlWorkItemLinks() 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
}

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 WorkitemController

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

WorkitemController implements the workitem resource.

func NewWorkitemController

func NewWorkitemController(service *goa.Service, db application.DB, config WorkItemControllerConfig) *WorkitemController

NewWorkitemController creates a workitem controller.

func (*WorkitemController) Create

Create does POST workitem

func (*WorkitemController) Delete

Delete does DELETE workitem

func (*WorkitemController) 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 (*WorkitemController) ListChildren

ListChildren runs the list action.

func (*WorkitemController) Reorder

Reorder does PATCH workitem

func (*WorkitemController) Show

Show does GET workitem

func (*WorkitemController) Update

Update 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) ListSourceLinkTypes

ListSourceLinkTypes runs the list-source-link-types action.

func (*WorkitemtypeController) ListTargetLinkTypes

ListTargetLinkTypes runs the list-target-link-types 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