app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountIdpController

func MountIdpController(service *goa.Service, ctrl IdpController)

MountIdpController "mounts" a Idp resource controller on the given service.

func MountPublicController

func MountPublicController(service *goa.Service, ctrl PublicController)

MountPublicController "mounts" a Public resource controller on the given service.

func MountSwaggerController

func MountSwaggerController(service *goa.Service, ctrl SwaggerController)

MountSwaggerController "mounts" a Swagger resource controller on the given service.

Types

type AddServiceProviderIdpContext

type AddServiceProviderIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

AddServiceProviderIdpContext provides the idp addServiceProvider action context.

func NewAddServiceProviderIdpContext

func NewAddServiceProviderIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*AddServiceProviderIdpContext, error)

NewAddServiceProviderIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller addServiceProvider action.

func (*AddServiceProviderIdpContext) BadRequest

func (ctx *AddServiceProviderIdpContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*AddServiceProviderIdpContext) Created

func (ctx *AddServiceProviderIdpContext) Created() error

Created sends a HTTP response with status code 201.

func (*AddServiceProviderIdpContext) InternalServerError

func (ctx *AddServiceProviderIdpContext) InternalServerError(r error) error

InternalServerError sends a HTTP response with status code 500.

type DeleteSPPayload

type DeleteSPPayload struct {
	// ID of service provider
	ServiceID string `form:"serviceId" json:"serviceId" yaml:"serviceId" xml:"serviceId"`
}

DeleteSPPayload

func (*DeleteSPPayload) Validate

func (ut *DeleteSPPayload) Validate() (err error)

Validate validates the DeleteSPPayload type instance.

type DeleteServiceProviderIdpContext

type DeleteServiceProviderIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *DeleteSPPayload
}

DeleteServiceProviderIdpContext provides the idp deleteServiceProvider action context.

func NewDeleteServiceProviderIdpContext

func NewDeleteServiceProviderIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteServiceProviderIdpContext, error)

NewDeleteServiceProviderIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller deleteServiceProvider action.

func (*DeleteServiceProviderIdpContext) InternalServerError

func (ctx *DeleteServiceProviderIdpContext) InternalServerError(r error) error

InternalServerError sends a HTTP response with status code 500.

func (*DeleteServiceProviderIdpContext) NotFound

func (ctx *DeleteServiceProviderIdpContext) NotFound(r error) error

NotFound sends a HTTP response with status code 404.

func (*DeleteServiceProviderIdpContext) OK

func (ctx *DeleteServiceProviderIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type DeleteSessionIdpContext

type DeleteSessionIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *DeleteSessionPayload
}

DeleteSessionIdpContext provides the idp deleteSession action context.

func NewDeleteSessionIdpContext

func NewDeleteSessionIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteSessionIdpContext, error)

NewDeleteSessionIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller deleteSession action.

func (*DeleteSessionIdpContext) InternalServerError

func (ctx *DeleteSessionIdpContext) InternalServerError(r error) error

InternalServerError sends a HTTP response with status code 500.

func (*DeleteSessionIdpContext) NotFound

func (ctx *DeleteSessionIdpContext) NotFound(r error) error

NotFound sends a HTTP response with status code 404.

func (*DeleteSessionIdpContext) OK

func (ctx *DeleteSessionIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type DeleteSessionPayload

type DeleteSessionPayload struct {
	// ID of the session
	SessionID string `form:"sessionId" json:"sessionId" yaml:"sessionId" xml:"sessionId"`
}

DeleteSessionPayload

func (*DeleteSessionPayload) Validate

func (ut *DeleteSessionPayload) Validate() (err error)

Validate validates the DeleteSessionPayload type instance.

type GetGoogleMetadataIdpContext

type GetGoogleMetadataIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetGoogleMetadataIdpContext provides the idp getGoogleMetadata action context.

func NewGetGoogleMetadataIdpContext

func NewGetGoogleMetadataIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetGoogleMetadataIdpContext, error)

NewGetGoogleMetadataIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller getGoogleMetadata action.

func (*GetGoogleMetadataIdpContext) OK

func (ctx *GetGoogleMetadataIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetMetadataIdpContext

type GetMetadataIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetMetadataIdpContext provides the idp getMetadata action context.

func NewGetMetadataIdpContext

func NewGetMetadataIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetMetadataIdpContext, error)

NewGetMetadataIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller getMetadata action.

func (*GetMetadataIdpContext) OK

func (ctx *GetMetadataIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetServiceProvidersIdpContext

type GetServiceProvidersIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetServiceProvidersIdpContext provides the idp getServiceProviders action context.

func NewGetServiceProvidersIdpContext

func NewGetServiceProvidersIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetServiceProvidersIdpContext, error)

NewGetServiceProvidersIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller getServiceProviders action.

func (*GetServiceProvidersIdpContext) InternalServerError

func (ctx *GetServiceProvidersIdpContext) InternalServerError(r error) error

InternalServerError sends a HTTP response with status code 500.

func (*GetServiceProvidersIdpContext) NotFound

func (ctx *GetServiceProvidersIdpContext) NotFound(r error) error

NotFound sends a HTTP response with status code 404.

func (*GetServiceProvidersIdpContext) OK

func (ctx *GetServiceProvidersIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type GetSessionsIdpContext

type GetSessionsIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

GetSessionsIdpContext provides the idp getSessions action context.

func NewGetSessionsIdpContext

func NewGetSessionsIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetSessionsIdpContext, error)

NewGetSessionsIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller getSessions action.

func (*GetSessionsIdpContext) InternalServerError

func (ctx *GetSessionsIdpContext) InternalServerError(r error) error

InternalServerError sends a HTTP response with status code 500.

func (*GetSessionsIdpContext) NotFound

func (ctx *GetSessionsIdpContext) NotFound(r error) error

NotFound sends a HTTP response with status code 404.

func (*GetSessionsIdpContext) OK

func (ctx *GetSessionsIdpContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type IdpController

type IdpController interface {
	goa.Muxer
	AddServiceProvider(*AddServiceProviderIdpContext) error
	DeleteServiceProvider(*DeleteServiceProviderIdpContext) error
	DeleteSession(*DeleteSessionIdpContext) error
	GetGoogleMetadata(*GetGoogleMetadataIdpContext) error
	GetMetadata(*GetMetadataIdpContext) error
	GetServiceProviders(*GetServiceProvidersIdpContext) error
	GetSessions(*GetSessionsIdpContext) error
	LoginUser(*LoginUserIdpContext) error
	ServeLogin(*ServeLoginIdpContext) error
	ServeLoginUser(*ServeLoginUserIdpContext) error
	ServeSSO(*ServeSSOIdpContext) error
}

IdpController is the controller interface for the Idp actions.

type LoginUserIdpContext

type LoginUserIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

LoginUserIdpContext provides the idp loginUser action context.

func NewLoginUserIdpContext

func NewLoginUserIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*LoginUserIdpContext, error)

NewLoginUserIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller loginUser action.

type PublicController

type PublicController interface {
	goa.Muxer
	goa.FileServer
}

PublicController is the controller interface for the Public actions.

type ServeLoginIdpContext

type ServeLoginIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ServeLoginIdpContext provides the idp serveLogin action context.

func NewServeLoginIdpContext

func NewServeLoginIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*ServeLoginIdpContext, error)

NewServeLoginIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller serveLogin action.

type ServeLoginUserIdpContext

type ServeLoginUserIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ServeLoginUserIdpContext provides the idp serveLoginUser action context.

func NewServeLoginUserIdpContext

func NewServeLoginUserIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*ServeLoginUserIdpContext, error)

NewServeLoginUserIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller serveLoginUser action.

type ServeSSOIdpContext

type ServeSSOIdpContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ServeSSOIdpContext provides the idp serveSSO action context.

func NewServeSSOIdpContext

func NewServeSSOIdpContext(ctx context.Context, r *http.Request, service *goa.Service) (*ServeSSOIdpContext, error)

NewServeSSOIdpContext parses the incoming request URL and body, performs validations and creates the context used by the idp controller serveSSO action.

type SwaggerController

type SwaggerController interface {
	goa.Muxer
	goa.FileServer
}

SwaggerController is the controller interface for the Swagger actions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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