controller

package
v0.0.0-...-ef83997 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 59 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 (
	KeyTotalWorkItems  = "total"
	KeyClosedWorkItems = "closed"
)

Following const are keys to be used in Meta Relationship for counters of Work Item

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 APISpaceTemplates = "spacetemplates"

APISpaceTemplates is the URL a) the URL portion in /api/spacetemplates and b) the "type" string in a JSON API resource object.

View Source
var APIWorkItemTypeGroups = "workitemtypegroups"

APIWorkItemTypeGroups is the type constant used when referring to work item type group relationships in JSONAPI

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

func ConvertFieldTypeFromModel(t workitem.FieldType) app.FieldType

converts the field type from modesl to app representation

func ConvertFieldTypeToModel

func ConvertFieldTypeToModel(t app.FieldType) (workitem.FieldType, 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, 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

func ConvertLabel(request *http.Request, lbl label.Label) *app.Label

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

func ConvertQueries(request *http.Request, queries []query.Query) []*app.Query

ConvertQueries from internal to external REST representation

func ConvertQuery

func ConvertQuery(request *http.Request, q query.Query) *app.Query

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

func ConvertSpaceToModel(appSpace app.Space) space.Space

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

func ConvertTracker(request *http.Request, tracker remoteworkitem.Tracker) *app.Tracker

ConvertTracker converts from internal to external REST representation

func ConvertTrackers

func ConvertTrackers(request *http.Request, trackers []remoteworkitem.Tracker) []*app.Tracker

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

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 GetAccessTokens

func GetAccessTokens(configuration trackerConfiguration) map[string]string

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

type AreaConvertFunc func(application.DB, *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 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

type CodebaseCheClientProvider func(ctx context.Context, ns string) (che.Client, error)

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

CheStart starts server if not running.

func (*CodebaseController) CheState

CheState gets che server state.

func (*CodebaseController) Create

Create runs the create action.

func (*CodebaseController) Delete

Delete deletes the given codebase if the user is authenticated and authorized

func (*CodebaseController) Edit

Edit Deprecated: ListWorkspaces action should be used instead.

func (*CodebaseController) ListWorkspaces

ListWorkspaces runs the listWorkspaces 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 {
	auth.ServiceConfiguration
	GetKeycloakEndpointEntitlement(*http.Request) (string, error)
	GetCacheControlCollaborators() string
}

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

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

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

DeleteDeployment runs the deleteDeployment action.

func (*DeploymentsController) SetDeployment

SetDeployment runs the setDeployment action.

func (*DeploymentsController) ShowDeploymentStatSeries

ShowDeploymentStatSeries runs the showDeploymentStatSeries action.

func (*DeploymentsController) ShowDeploymentStats

ShowDeploymentStats runs the showDeploymentStats action.

func (*DeploymentsController) ShowSpace

ShowSpace runs the showSpace action.

func (*DeploymentsController) ShowSpaceEnvironments

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

List runs the list action.

func (*FeaturesController) Show

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

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

CreateChild runs the create-child action.

func (*IterationController) Delete

Delete runs the delete 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
}

IterationControllerConfiguration configuration for the IterationController

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

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

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

Render runs the render action.

type ResponseReader

type ResponseReader interface {
	ReadResponse(*http.Response) ([]byte, error)
}

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

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 {
	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) error

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

Create runs the create action.

func (*SpaceIterationsController) List

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

List runs the list action.

func (*SpaceTemplateController) Show

Show runs the show action.

type SpaceTemplateControllerConfiguration

type SpaceTemplateControllerConfiguration interface {
	GetCacheControlSpaceTemplates() string
}

SpaceTemplateControllerConfiguration the configuration for the SpaceTemplateController

type SpaceTemplateConvertFunc

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

Show runs the show action.

type TokenRetriever

type TokenRetriever interface {
	TokenForService(serviceURL string) (*string, error)
}

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

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

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

Create runs the create action.

func (*UserspaceController) Show

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

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 WorkItemConvertFunc

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

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

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

List runs the list action.

func (*WorkItemLinkCategoryController) Show

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

Create runs the create action.

func (*WorkItemLinkController) Delete

Delete runs the delete action

func (*WorkItemLinkController) Show

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

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

List runs the list action.

type WorkItemLinkTypesControllerConfiguration

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

WorkItemLinkTypesControllerConfiguration the configuration for the WorkItemLinkTypesController

type WorkItemPtrSlice

type WorkItemPtrSlice []*app.WorkItem

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

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

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

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

NewWorkitemtypeController creates a workitemtype controller.

func (*WorkitemtypeController) Show

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

List runs the list action

Jump to

Keyboard shortcuts

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