routes

package
v0.17.19 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityNameIdentity              = "identities"
	EntityNameIdentityServiceConfig = "service-configs"
)
View Source
const (
	LimitMax      = 500
	OffsetMax     = 100000
	LimitDefault  = 10
	OffsetDefault = 0
)
View Source
const (
	EntityNameApiSession = "api-sessions"
)
View Source
const EntityNameAuthenticator = "authenticators"
View Source
const EntityNameCa = "cas"
View Source
const EntityNameConfig = "configs"
View Source
const EntityNameConfigType = "config-types"
View Source
const EntityNameCurrentIdentity = "current-identity"
View Source
const EntityNameCurrentSession = "current-api-session"
View Source
const (
	EntityNameEdgeRouter = "edge-routers"
)
View Source
const EntityNameEdgeRouterPolicy = "edge-router-policies"
View Source
const EntityNameEnrollment = "enrollments"
View Source
const EntityNameGeoRegion = "geo-regions"
View Source
const EntityNameIdentityType = "identity-types"
View Source
const EntityNamePostureCheck = "posture-checks"
View Source
const EntityNamePostureCheckType = "posture-check-types"
View Source
const EntityNamePostureData = "posture-data"
View Source
const EntityNamePostureResponse = "posture-response"
View Source
const (
	EntityNameSelf = "self"
)
View Source
const EntityNameService = "services"
View Source
const EntityNameServiceEdgeRouterPolicy = "service-edge-router-policies"
View Source
const EntityNameServicePolicy = "service-policies"
View Source
const EntityNameSession = "sessions"
View Source
const EntityNameSpecs = "specs"
View Source
const EntityNameTerminator = "terminators"
View Source
const EntityNameTransitRouter = "transit-routers"

Variables

View Source
var AuthenticatorLinkFactory = NewAuthenticatorLinkFactory()
View Source
var CaLinkFactory = NewCaLinkFactory()
View Source
var EdgeRouterLinkFactory = NewEdgeRouterLinkFactory()
View Source
var EdgeRouterPolicyLinkFactory = NewEdgeRouterPolicyLinkFactory()
View Source
var IdentityTypeLinkFactory = NewBasicLinkFactory(EntityNameIdentityType)
View Source
var PostureCheckLinkFactory = NewPostureCheckLinkFactory()
View Source
var PostureCheckTypeLinkFactory = NewBasicLinkFactory(EntityNamePostureCheckType)
View Source
var PostureResponseLinkFactory = NewBasicLinkFactory(EntityNamePostureResponse)
View Source
var ServiceEdgeRouterPolicyLinkFactory = NewServiceEdgeRouterPolicyLinkFactory()
View Source
var ServiceLinkFactory = NewServiceLinkFactory()
View Source
var ServicePolicyLinkFactory = NewServicePolicyLinkFactory()
View Source
var SpecLinkFactory = NewSpecLinkFactory()
View Source
var TransitRouterLinkFactory = NewBasicLinkFactory(EntityNameTransitRouter)

Functions

func BaseEntityToRestModel added in v0.14.35

func BaseEntityToRestModel(entity models.Entity, linkFactory LinksFactory) rest_model.BaseEntity

func Create

func Create(rc *response.RequestContext, _ response.Responder, linkFactory CreateLinkFactory, creator ModelCreateF)

func CreateWithResponder added in v0.14.35

func CreateWithResponder(rc *response.RequestContext, rsp response.Responder, linkFactory CreateLinkFactory, creator ModelCreateF)

func Delete

func Delete(rc *response.RequestContext, deleteF ModelDeleteF)

func DeleteWithHandler

func DeleteWithHandler(rc *response.RequestContext, deleteHandler DeleteHandler)

func Detail

func Detail(rc *response.RequestContext, f ModelDetailF)

func DetailWithHandler

func DetailWithHandler(ae *env.AppEnv, rc *response.RequestContext, loader models.EntityRetriever, mapper ModelToApiMapper)

func GetNamedEdgeRouterRoles added in v0.16.32

func GetNamedEdgeRouterRoles(edgeRouterHandler *model.EdgeRouterHandler, roles []string) rest_model.NamedRoles

func GetNamedIdentityRoles added in v0.16.32

func GetNamedIdentityRoles(identityHandler *model.IdentityHandler, roles []string) rest_model.NamedRoles

func GetNamedPostureCheckRoles added in v0.16.48

func GetNamedPostureCheckRoles(postureCheckHandler *model.PostureCheckHandler, roles []string) rest_model.NamedRoles

func GetNamedServiceRoles added in v0.16.32

func GetNamedServiceRoles(serviceHandler *model.EdgeServiceHandler, roles []string) rest_model.NamedRoles

func List

func List(rc *response.RequestContext, f modelListF)

func ListAssociationWithHandler

func ListAssociationWithHandler(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, associationLoader models.EntityRetriever, mapper ModelToApiMapper)

func ListAssociations

func ListAssociations(rc *response.RequestContext, listF listAssocF)

func ListAssociationsWithFilter

func ListAssociationsWithFilter(ae *env.AppEnv, rc *response.RequestContext, filterTemplate string, entityController models.EntityRetriever, mapper ModelToApiMapper)

func ListWithEnvelopeFactory added in v0.14.35

func ListWithEnvelopeFactory(rc *response.RequestContext, toEnvelope ApiListEnvelopeFactory, f modelListF)

func ListWithHandler

func ListWithHandler(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, mapper ModelToApiMapper)

func ListWithQueryF

func ListWithQueryF(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, mapper ModelToApiMapper, qf queryF)

func ListWithQueryFAndCollector added in v0.14.35

func ListWithQueryFAndCollector(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, mapper ModelToApiMapper, toEnvelope ApiListEnvelopeFactory, qf queryF)

func MapAdvisorServiceReachabilityToRestEntity added in v0.14.35

func MapAdvisorServiceReachabilityToRestEntity(entity *model.AdvisorServiceReachability) *rest_model.PolicyAdvice

func MapApiSessionToRestInterface added in v0.14.35

func MapApiSessionToRestInterface(_ *env.AppEnv, _ *response.RequestContext, apiSessionEntity models.Entity) (interface{}, error)

func MapApiSessionToRestModel added in v0.14.35

func MapApiSessionToRestModel(apiSession *model.ApiSession) (*rest_model.APISessionDetail, error)

func MapAuthenticatorToRestEntity added in v0.14.35

func MapAuthenticatorToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapAuthenticatorToRestModel added in v0.14.35

func MapAuthenticatorToRestModel(ae *env.AppEnv, i *model.Authenticator) (*rest_model.AuthenticatorDetail, error)

func MapAuthenticatorsToRestEntities added in v0.14.35

func MapAuthenticatorsToRestEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.Authenticator) ([]*rest_model.AuthenticatorDetail, error)

func MapCaToRestEntity added in v0.14.35

func MapCaToRestEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapCaToRestModel added in v0.14.35

func MapCaToRestModel(i *model.Ca) (*rest_model.CaDetail, error)

func MapConfigToRestEntity added in v0.14.35

func MapConfigToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapConfigToRestModel added in v0.14.35

func MapConfigToRestModel(ae *env.AppEnv, config *model.Config) (*rest_model.ConfigDetail, error)

func MapConfigTypeToRestEntity added in v0.14.35

func MapConfigTypeToRestEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapConfigTypeToRestModel added in v0.14.35

func MapConfigTypeToRestModel(configType *model.ConfigType) (*rest_model.ConfigTypeDetail, error)

func MapCreateCaToModel added in v0.14.35

func MapCreateCaToModel(ca *rest_model.CaCreate) *model.Ca

func MapCreateConfigToModel added in v0.14.35

func MapCreateConfigToModel(config *rest_model.ConfigCreate) *model.Config

func MapCreateConfigTypeToModel added in v0.14.35

func MapCreateConfigTypeToModel(configType *rest_model.ConfigTypeCreate) *model.ConfigType

func MapCreateEdgeRouterPolicyToModel added in v0.14.35

func MapCreateEdgeRouterPolicyToModel(policy *rest_model.EdgeRouterPolicyCreate) *model.EdgeRouterPolicy

func MapCreateEdgeRouterToModel added in v0.14.35

func MapCreateEdgeRouterToModel(router *rest_model.EdgeRouterCreate) *model.EdgeRouter

func MapCreateIdentityToModel added in v0.14.35

func MapCreateIdentityToModel(identity *rest_model.IdentityCreate, identityTypeId string) (*model.Identity, []*model.Enrollment)

func MapCreatePostureCheckToModel added in v0.16.46

func MapCreatePostureCheckToModel(postureCheck rest_model.PostureCheckCreate) *model.PostureCheck

func MapCreatePostureResponseToModel added in v0.17.5

func MapCreatePostureResponseToModel(ae *env.AppEnv, rc *response.RequestContext, postureResponse rest_model.PostureResponseCreate)

func MapCreateServiceEdgeRouterPolicyToModel added in v0.14.35

func MapCreateServiceEdgeRouterPolicyToModel(policy *rest_model.ServiceEdgeRouterPolicyCreate) *model.ServiceEdgeRouterPolicy

func MapCreateServicePolicyToModel added in v0.14.35

func MapCreateServicePolicyToModel(policy *rest_model.ServicePolicyCreate) *model.ServicePolicy

func MapCreateServiceToModel added in v0.14.35

func MapCreateServiceToModel(service *rest_model.ServiceCreate) *model.Service

func MapCreateSessionToModel added in v0.14.35

func MapCreateSessionToModel(apiSessionId string, session *rest_model.SessionCreate) *model.Session

func MapCreateTerminatorToModel added in v0.14.35

func MapCreateTerminatorToModel(terminator *rest_model.TerminatorCreate) *network.Terminator

func MapCreateToAuthenticatorModel added in v0.14.35

func MapCreateToAuthenticatorModel(in *rest_model.AuthenticatorCreate) *model.Authenticator

func MapCreateTransitRouterToModel added in v0.14.35

func MapCreateTransitRouterToModel(router *rest_model.TransitRouterCreate) *model.TransitRouter

func MapEdgeRouterPolicyToRestEntity added in v0.14.35

func MapEdgeRouterPolicyToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapEdgeRouterPolicyToRestModel added in v0.14.35

func MapEdgeRouterPolicyToRestModel(ae *env.AppEnv, policy *model.EdgeRouterPolicy) (*rest_model.EdgeRouterPolicyDetail, error)

func MapEdgeRouterToRestEntity added in v0.14.35

func MapEdgeRouterToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapEdgeRouterToRestModel added in v0.14.35

func MapEdgeRouterToRestModel(ae *env.AppEnv, router *model.EdgeRouter) (*rest_model.EdgeRouterDetail, error)

func MapEnrollmentToRestEntity added in v0.14.35

func MapEnrollmentToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapEnrollmentToRestModel added in v0.14.35

func MapEnrollmentToRestModel(ae *env.AppEnv, enrollment *model.Enrollment) (*rest_model.EnrollmentDetail, error)

func MapGeoRegionToRestEntity added in v0.14.35

func MapGeoRegionToRestEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapGeoRegionToRestModel added in v0.14.35

func MapGeoRegionToRestModel(geoRegion *model.GeoRegion) (*rest_model.GeoRegionDetail, error)

func MapIdentityToRestEntity added in v0.14.35

func MapIdentityToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapIdentityToRestModel added in v0.14.35

func MapIdentityToRestModel(ae *env.AppEnv, identity *model.Identity) (*rest_model.IdentityDetail, error)

func MapIdentityTypeToRestEntity added in v0.14.35

func MapIdentityTypeToRestEntity(_ *env.AppEnv, _ *response.RequestContext, identityTypeModel models.Entity) (interface{}, error)

func MapIdentityTypeToRestModel added in v0.14.35

func MapIdentityTypeToRestModel(identityType *model.IdentityType) *rest_model.IdentityTypeDetail

func MapPatchAuthenticatorToModel added in v0.14.35

func MapPatchAuthenticatorToModel(id string, in *rest_model.AuthenticatorPatch) *model.Authenticator

func MapPatchAuthenticatorWithCurrentToModel added in v0.14.35

func MapPatchAuthenticatorWithCurrentToModel(id, identityId string, authenticator *rest_model.AuthenticatorPatchWithCurrent) *model.AuthenticatorSelf

func MapPatchCaToModel added in v0.14.35

func MapPatchCaToModel(id string, ca *rest_model.CaPatch) *model.Ca

func MapPatchConfigToModel added in v0.14.35

func MapPatchConfigToModel(id string, config *rest_model.ConfigPatch) *model.Config

func MapPatchConfigTypeToModel added in v0.14.35

func MapPatchConfigTypeToModel(id string, configType *rest_model.ConfigTypePatch) *model.ConfigType

func MapPatchEdgeRouterPolicyToModel added in v0.14.35

func MapPatchEdgeRouterPolicyToModel(id string, policy *rest_model.EdgeRouterPolicyPatch) *model.EdgeRouterPolicy

func MapPatchEdgeRouterToModel added in v0.14.35

func MapPatchEdgeRouterToModel(id string, router *rest_model.EdgeRouterPatch) *model.EdgeRouter

func MapPatchIdentityToModel added in v0.14.35

func MapPatchIdentityToModel(id string, identity *rest_model.IdentityPatch, identityTypeId string) *model.Identity

func MapPatchPostureCheckToModel added in v0.16.46

func MapPatchPostureCheckToModel(id string, postureCheck rest_model.PostureCheckPatch) *model.PostureCheck

func MapPatchServiceEdgeRouterPolicyToModel added in v0.14.35

func MapPatchServiceEdgeRouterPolicyToModel(id string, policy *rest_model.ServiceEdgeRouterPolicyPatch) *model.ServiceEdgeRouterPolicy

func MapPatchServicePolicyToModel added in v0.14.35

func MapPatchServicePolicyToModel(id string, policy *rest_model.ServicePolicyPatch) *model.ServicePolicy

func MapPatchServiceToModel added in v0.14.35

func MapPatchServiceToModel(id string, service *rest_model.ServicePatch) *model.Service

func MapPatchTerminatorToModel added in v0.14.35

func MapPatchTerminatorToModel(id string, terminator *rest_model.TerminatorPatch) *network.Terminator

func MapPatchTransitRouterToModel added in v0.14.35

func MapPatchTransitRouterToModel(id string, router *rest_model.TransitRouterPatch) *model.TransitRouter

func MapPostureCheckToRestEntity added in v0.16.46

func MapPostureCheckToRestEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapPostureCheckToRestModel added in v0.16.46

func MapPostureCheckToRestModel(i *model.PostureCheck) (rest_model.PostureCheckDetail, error)

func MapPostureCheckTypeToRestEntity added in v0.16.48

func MapPostureCheckTypeToRestEntity(_ *env.AppEnv, _ *response.RequestContext, postureCheckTypeModel models.Entity) (interface{}, error)

func MapPostureCheckTypeToRestModel added in v0.16.48

func MapPostureCheckTypeToRestModel(postureCheckType *model.PostureCheckType) *rest_model.PostureCheckTypeDetail

func MapPostureChecksToRestEntity added in v0.17.5

func MapPostureChecksToRestEntity(ae *env.AppEnv, rc *response.RequestContext, es []*model.PostureCheck) ([]interface{}, error)

func MapServiceConfigToModel added in v0.14.35

func MapServiceConfigToModel(config rest_model.ServiceConfigAssign) model.ServiceConfig

func MapServiceEdgeRouterPolicyToRestEntity added in v0.14.35

func MapServiceEdgeRouterPolicyToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapServiceEdgeRouterPolicyToRestModel added in v0.14.35

func MapServiceEdgeRouterPolicyToRestModel(ae *env.AppEnv, policy *model.ServiceEdgeRouterPolicy) (*rest_model.ServiceEdgeRouterPolicyDetail, error)

func MapServicePolicyToRestEntity added in v0.14.35

func MapServicePolicyToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapServicePolicyToRestModel added in v0.14.35

func MapServicePolicyToRestModel(ae *env.AppEnv, policy *model.ServicePolicy) (*rest_model.ServicePolicyDetail, error)

func MapServiceToRestEntity added in v0.14.35

func MapServiceToRestEntity(ae *env.AppEnv, rc *response.RequestContext, e models.Entity) (interface{}, error)

func MapServiceToRestModel added in v0.14.35

func MapServiceToRestModel(ae *env.AppEnv, rc *response.RequestContext, service *model.ServiceDetail) (*rest_model.ServiceDetail, error)

func MapServicesToRestEntity added in v0.14.35

func MapServicesToRestEntity(ae *env.AppEnv, rc *response.RequestContext, es []*model.ServiceDetail) ([]interface{}, error)

func MapSessionToRestEntity added in v0.14.35

func MapSessionToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapSessionToRestModel added in v0.14.35

func MapSessionToRestModel(ae *env.AppEnv, sessionModel *model.Session) (*rest_model.SessionDetail, error)

func MapSessionsToRestEntities added in v0.14.35

func MapSessionsToRestEntities(ae *env.AppEnv, rc *response.RequestContext, sessions []*model.Session) ([]interface{}, error)

func MapTerminatorToRestEntity added in v0.14.35

func MapTerminatorToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapTerminatorToRestModel added in v0.14.35

func MapTerminatorToRestModel(ae *env.AppEnv, terminator *network.Terminator) (*rest_model.TerminatorDetail, error)

func MapToCurrentApiSessionRestModel added in v0.14.35

func MapToCurrentApiSessionRestModel(s *model.ApiSession, sessionTimeout time.Duration) *rest_model.CurrentAPISessionDetail

func MapTransitRouterToRestEntity added in v0.14.35

func MapTransitRouterToRestEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (interface{}, error)

func MapTransitRouterToRestModel added in v0.14.35

func MapTransitRouterToRestModel(ae *env.AppEnv, router *model.TransitRouter) (*rest_model.TransitRouterDetail, error)

func MapUpdateAuthenticatorToModel added in v0.14.35

func MapUpdateAuthenticatorToModel(id string, in *rest_model.AuthenticatorUpdate) *model.Authenticator

func MapUpdateAuthenticatorWithCurrentToModel added in v0.14.35

func MapUpdateAuthenticatorWithCurrentToModel(id, identityId string, authenticator *rest_model.AuthenticatorUpdateWithCurrent) *model.AuthenticatorSelf

func MapUpdateCaToModel added in v0.14.35

func MapUpdateCaToModel(id string, ca *rest_model.CaUpdate) *model.Ca

func MapUpdateConfigToModel added in v0.14.35

func MapUpdateConfigToModel(id string, config *rest_model.ConfigUpdate) *model.Config

func MapUpdateConfigTypeToModel added in v0.14.35

func MapUpdateConfigTypeToModel(id string, configType *rest_model.ConfigTypeUpdate) *model.ConfigType

func MapUpdateEdgeRouterPolicyToModel added in v0.14.35

func MapUpdateEdgeRouterPolicyToModel(id string, policy *rest_model.EdgeRouterPolicyUpdate) *model.EdgeRouterPolicy

func MapUpdateEdgeRouterToModel added in v0.14.35

func MapUpdateEdgeRouterToModel(id string, router *rest_model.EdgeRouterUpdate) *model.EdgeRouter

func MapUpdateIdentityToModel added in v0.14.35

func MapUpdateIdentityToModel(id string, identity *rest_model.IdentityUpdate, identityTypeId string) *model.Identity

func MapUpdatePostureCheckToModel added in v0.16.46

func MapUpdatePostureCheckToModel(id string, postureCheck rest_model.PostureCheckUpdate) *model.PostureCheck

func MapUpdateServiceEdgeRouterPolicyToModel added in v0.14.35

func MapUpdateServiceEdgeRouterPolicyToModel(id string, policy *rest_model.ServiceEdgeRouterPolicyUpdate) *model.ServiceEdgeRouterPolicy

func MapUpdateServicePolicyToModel added in v0.14.35

func MapUpdateServicePolicyToModel(id string, policy *rest_model.ServicePolicyUpdate) *model.ServicePolicy

func MapUpdateServiceToModel added in v0.14.35

func MapUpdateServiceToModel(id string, service *rest_model.ServiceUpdate) *model.Service

func MapUpdateTerminatorToModel added in v0.14.35

func MapUpdateTerminatorToModel(id string, terminator *rest_model.TerminatorUpdate) *network.Terminator

func MapUpdateTransitRouterToModel added in v0.14.35

func MapUpdateTransitRouterToModel(id string, router *rest_model.TransitRouterUpdate) *model.TransitRouter
func NewLink(path string) rest_model.Link

func Patch

func Patch(rc *response.RequestContext, patchF ModelPatchF)

func PostureCheckToQuery added in v0.17.5

func PostureCheckToQuery(check *model.PostureCheck) *rest_model.PostureQuery

func ToEntityRef added in v0.14.35

func ToEntityRef(name string, entity models.Entity, factory LinksFactory) *rest_model.EntityRef

func Update

func Update(rc *response.RequestContext, updateF ModelUpdateF)

func UpdateAllowEmptyBody

func UpdateAllowEmptyBody(rc *response.RequestContext, updateF ModelUpdateF)

Types

type ApiEntityEnvelopeFactory added in v0.14.35

type ApiEntityEnvelopeFactory func(data interface{}, meta *rest_model.Meta) interface{}

type ApiListEnvelopeFactory added in v0.14.35

type ApiListEnvelopeFactory func(data []interface{}, meta *rest_model.Meta) interface{}

type ApiSessionHandler added in v0.14.35

type ApiSessionHandler struct {
	BasePath string
}

func NewApiSessionRouter

func NewApiSessionRouter() *ApiSessionHandler

func (*ApiSessionHandler) Delete added in v0.14.35

func (ir *ApiSessionHandler) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*ApiSessionHandler) Detail added in v0.14.35

func (ir *ApiSessionHandler) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*ApiSessionHandler) List added in v0.14.35

func (ir *ApiSessionHandler) List(ae *env.AppEnv, rc *response.RequestContext)

func (*ApiSessionHandler) Register added in v0.14.35

func (ir *ApiSessionHandler) Register(ae *env.AppEnv)

type AuthRouter

type AuthRouter struct {
	// contains filtered or unexported fields
}

func NewAuthRouter

func NewAuthRouter() *AuthRouter

func (*AuthRouter) Register

func (ro *AuthRouter) Register(ae *env.AppEnv)

type AuthenticatorLinkFactoryImpl added in v0.14.35

type AuthenticatorLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewAuthenticatorLinkFactory added in v0.14.35

func NewAuthenticatorLinkFactory() *AuthenticatorLinkFactoryImpl

type AuthenticatorRouter

type AuthenticatorRouter struct {
	BasePath string
}

func NewAuthenticatorRouter

func NewAuthenticatorRouter() *AuthenticatorRouter

func (*AuthenticatorRouter) Create

func (*AuthenticatorRouter) Delete

func (*AuthenticatorRouter) Detail

func (*AuthenticatorRouter) List

func (*AuthenticatorRouter) Patch

func (*AuthenticatorRouter) Register

func (r *AuthenticatorRouter) Register(ae *env.AppEnv)

func (*AuthenticatorRouter) Update

type BasicLinkFactory added in v0.14.35

type BasicLinkFactory struct {
	// contains filtered or unexported fields
}

func NewBasicLinkFactory added in v0.14.35

func NewBasicLinkFactory(entityName string) *BasicLinkFactory

func (*BasicLinkFactory) EntityName added in v0.14.35

func (factory *BasicLinkFactory) EntityName() string
func (factory *BasicLinkFactory) Links(entity models.Entity) rest_model.Links
func (factory BasicLinkFactory) NewNestedLink(entity models.Entity, elem ...string) rest_model.Link
func (factory *BasicLinkFactory) SelfLink(entity models.Entity) rest_model.Link

func (*BasicLinkFactory) SelfLinkFromId added in v0.14.35

func (factory *BasicLinkFactory) SelfLinkFromId(id string) rest_model.Link

func (*BasicLinkFactory) SelfUrlString added in v0.14.35

func (factory *BasicLinkFactory) SelfUrlString(id string) string

type CaLinkFactoryImpl added in v0.14.35

type CaLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewCaLinkFactory added in v0.14.35

func NewCaLinkFactory() *CaLinkFactoryImpl
func (factory *CaLinkFactoryImpl) Links(entity models.Entity) rest_model.Links

type CaRouter

type CaRouter struct {
	BasePath string
}

func NewCaRouter

func NewCaRouter() *CaRouter

func (*CaRouter) Create

func (*CaRouter) Delete

func (r *CaRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*CaRouter) Detail

func (r *CaRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*CaRouter) List

func (r *CaRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*CaRouter) Patch

func (*CaRouter) Register

func (r *CaRouter) Register(ae *env.AppEnv)

func (*CaRouter) Update

func (*CaRouter) VerifyCert

type ConfigRouter

type ConfigRouter struct {
	BasePath string
}

func NewConfigRouter

func NewConfigRouter() *ConfigRouter

func (*ConfigRouter) Create

func (*ConfigRouter) Delete

func (r *ConfigRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*ConfigRouter) Detail

func (r *ConfigRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*ConfigRouter) List

func (r *ConfigRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*ConfigRouter) Patch

func (*ConfigRouter) Register

func (r *ConfigRouter) Register(ae *env.AppEnv)

func (*ConfigRouter) Update

type ConfigTypeRouter

type ConfigTypeRouter struct {
	BasePath string
}

func NewConfigTypeRouter

func NewConfigTypeRouter() *ConfigTypeRouter

func (*ConfigTypeRouter) Create

func (*ConfigTypeRouter) Delete

func (r *ConfigTypeRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*ConfigTypeRouter) Detail

func (r *ConfigTypeRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*ConfigTypeRouter) List

func (*ConfigTypeRouter) ListConfigs

func (*ConfigTypeRouter) Patch

func (*ConfigTypeRouter) Register

func (r *ConfigTypeRouter) Register(ae *env.AppEnv)

func (*ConfigTypeRouter) Update

type CreateEventHandler

type CreateEventHandler interface {
	BeforeStoreCreate(rc *RouteEventContext, modelEntity interface{}) error
}

type CreateLinkFactory added in v0.14.35

type CreateLinkFactory interface {
	SelfLinkFromId(id string) rest_model.Link
}

type CreateReadDeleteOnlyRouter

type CreateReadDeleteOnlyRouter interface {
	List(ae *env.AppEnv, rc *response.RequestContext)
	Detail(ae *env.AppEnv, rc *response.RequestContext)
	Create(ae *env.AppEnv, rc *response.RequestContext)
	Delete(ae *env.AppEnv, rc *response.RequestContext)
}

type CrudRouter

type CrudRouter interface {
	List(ae *env.AppEnv, rc *response.RequestContext)
	Detail(ae *env.AppEnv, rc *response.RequestContext)
	Create(ae *env.AppEnv, rc *response.RequestContext)
	Delete(ae *env.AppEnv, rc *response.RequestContext)
	Update(ae *env.AppEnv, rc *response.RequestContext)
	Patch(ae *env.AppEnv, rc *response.RequestContext)
}

type CurrentApiSessionLinkFactoryImpl added in v0.15.9

type CurrentApiSessionLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewCurrentApiSessionLinkFactory added in v0.15.9

func NewCurrentApiSessionLinkFactory() *CurrentApiSessionLinkFactoryImpl
func (factory *CurrentApiSessionLinkFactoryImpl) SelfLink(entity models.Entity) rest_model.Link

type CurrentIdentityAuthenticatorLinkFactoryImpl added in v0.15.9

type CurrentIdentityAuthenticatorLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewCurrentIdentityAuthenticatorLinkFactory added in v0.15.9

func NewCurrentIdentityAuthenticatorLinkFactory() *CurrentIdentityAuthenticatorLinkFactoryImpl
func (factory CurrentIdentityAuthenticatorLinkFactoryImpl) NewNestedLink(entity models.Entity, elem ...string) rest_model.Link

func (*CurrentIdentityAuthenticatorLinkFactoryImpl) SelfUrlString added in v0.15.9

func (factory *CurrentIdentityAuthenticatorLinkFactoryImpl) SelfUrlString(id string) string

type CurrentIdentityAuthenticatorRouter

type CurrentIdentityAuthenticatorRouter struct {
	BasePath string
}

func NewCurrentIdentityAuthenticatorRouter

func NewCurrentIdentityAuthenticatorRouter() *CurrentIdentityAuthenticatorRouter

func (*CurrentIdentityAuthenticatorRouter) Detail

func (*CurrentIdentityAuthenticatorRouter) List

func (*CurrentIdentityAuthenticatorRouter) Patch

func (*CurrentIdentityAuthenticatorRouter) Register

func (*CurrentIdentityAuthenticatorRouter) Update

type CurrentIdentityLinkFactoryImpl added in v0.15.9

type CurrentIdentityLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewCurrentIdentityLinkFactory added in v0.15.9

func NewCurrentIdentityLinkFactory() *CurrentIdentityLinkFactoryImpl
func (factory CurrentIdentityLinkFactoryImpl) NewNestedLink(_ models.Entity, elem ...string) rest_model.Link

func (*CurrentIdentityLinkFactoryImpl) SelfUrlString added in v0.15.9

func (factory *CurrentIdentityLinkFactoryImpl) SelfUrlString(_ string) string

type CurrentIdentityRouter added in v0.15.9

type CurrentIdentityRouter struct {
	BasePath string
}

func NewCurrentIdentityRouter added in v0.15.9

func NewCurrentIdentityRouter() *CurrentIdentityRouter

func (*CurrentIdentityRouter) Register added in v0.15.9

func (r *CurrentIdentityRouter) Register(ae *env.AppEnv)

type CurrentSessionRouter

type CurrentSessionRouter struct {
}

func NewCurrentSessionRouter

func NewCurrentSessionRouter() *CurrentSessionRouter

func (*CurrentSessionRouter) Delete

func (router *CurrentSessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*CurrentSessionRouter) Detail

func (router *CurrentSessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*CurrentSessionRouter) Register

func (router *CurrentSessionRouter) Register(ae *env.AppEnv)

type DatabaseRouter added in v0.15.1

type DatabaseRouter struct {
}

func NewDatabaseRouter added in v0.15.1

func NewDatabaseRouter() *DatabaseRouter

func (*DatabaseRouter) CheckDatastoreIntegrity added in v0.15.28

func (r *DatabaseRouter) CheckDatastoreIntegrity(ae *env.AppEnv, rc *response.RequestContext, fixErrors bool)

func (*DatabaseRouter) CreateSnapshot added in v0.15.1

func (r *DatabaseRouter) CreateSnapshot(ae *env.AppEnv, rc *response.RequestContext)

func (*DatabaseRouter) Register added in v0.15.1

func (r *DatabaseRouter) Register(ae *env.AppEnv)

type DeleteEventHandler

type DeleteEventHandler interface {
	BeforeStoreDelete(rc *RouteEventContext, id string) error
}

type DeleteHandler

type DeleteHandler interface {
	Delete(id string) error
}

type EdgeRouterLinkFactoryImpl added in v0.14.35

type EdgeRouterLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewEdgeRouterLinkFactory added in v0.14.35

func NewEdgeRouterLinkFactory() *EdgeRouterLinkFactoryImpl
func (factory *EdgeRouterLinkFactoryImpl) Links(entity models.Entity) rest_model.Links

type EdgeRouterPolicyLinkFactoryImpl added in v0.14.35

type EdgeRouterPolicyLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewEdgeRouterPolicyLinkFactory added in v0.14.35

func NewEdgeRouterPolicyLinkFactory() *EdgeRouterPolicyLinkFactoryImpl

type EdgeRouterPolicyRouter

type EdgeRouterPolicyRouter struct {
	BasePath string
}

func NewEdgeRouterPolicyRouter

func NewEdgeRouterPolicyRouter() *EdgeRouterPolicyRouter

func (*EdgeRouterPolicyRouter) Create

func (*EdgeRouterPolicyRouter) Delete

func (*EdgeRouterPolicyRouter) Detail

func (*EdgeRouterPolicyRouter) List

func (*EdgeRouterPolicyRouter) ListEdgeRouters

func (r *EdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)

func (*EdgeRouterPolicyRouter) ListIdentities

func (r *EdgeRouterPolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)

func (*EdgeRouterPolicyRouter) Patch

func (*EdgeRouterPolicyRouter) Register

func (r *EdgeRouterPolicyRouter) Register(ae *env.AppEnv)

func (*EdgeRouterPolicyRouter) Update

type EdgeRouterRouter

type EdgeRouterRouter struct {
	BasePath string
}

func NewEdgeRouterRouter

func NewEdgeRouterRouter() *EdgeRouterRouter

func (*EdgeRouterRouter) Create

func (*EdgeRouterRouter) Delete

func (r *EdgeRouterRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*EdgeRouterRouter) Detail

func (r *EdgeRouterRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*EdgeRouterRouter) List

func (*EdgeRouterRouter) Patch

func (*EdgeRouterRouter) Register

func (r *EdgeRouterRouter) Register(ae *env.AppEnv)

func (*EdgeRouterRouter) Update

type EnrollRouter

type EnrollRouter struct {
}

func NewEnrollRouter

func NewEnrollRouter() *EnrollRouter

func (*EnrollRouter) Register

func (ro *EnrollRouter) Register(ae *env.AppEnv)

type EnrollmentRouter

type EnrollmentRouter struct {
	BasePath string
}

func NewEnrollmentRouter

func NewEnrollmentRouter() *EnrollmentRouter

func (*EnrollmentRouter) Delete

func (r *EnrollmentRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*EnrollmentRouter) Detail

func (r *EnrollmentRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*EnrollmentRouter) List

func (*EnrollmentRouter) Register

func (r *EnrollmentRouter) Register(ae *env.AppEnv)

type FullLinkFactory added in v0.15.9

type FullLinkFactory interface {
	LinksFactory
	SelfLinkFactory
}
var CurrentIdentityLinkFactory FullLinkFactory = NewCurrentIdentityLinkFactory()

type GeoRegionRouter

type GeoRegionRouter struct {
	BasePath string
}

func NewGeoRegionRouter

func NewGeoRegionRouter() *GeoRegionRouter

func (*GeoRegionRouter) Detail

func (r *GeoRegionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*GeoRegionRouter) List

func (r *GeoRegionRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*GeoRegionRouter) Register

func (r *GeoRegionRouter) Register(ae *env.AppEnv)

type IdentityLinkFactoryImpl added in v0.14.35

type IdentityLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewIdentityLinkFactory added in v0.14.35

func NewIdentityLinkFactory(selfFactory *BasicLinkFactory) *IdentityLinkFactoryImpl
func (factory *IdentityLinkFactoryImpl) Links(entity models.Entity) rest_model.Links

type IdentityRouter

type IdentityRouter struct {
	BasePath string
}

func NewIdentityRouter

func NewIdentityRouter() *IdentityRouter

func (*IdentityRouter) Create

func (*IdentityRouter) Delete

func (r *IdentityRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*IdentityRouter) Detail

func (r *IdentityRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*IdentityRouter) List

func (r *IdentityRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*IdentityRouter) Patch

func (*IdentityRouter) Register

func (r *IdentityRouter) Register(ae *env.AppEnv)

func (*IdentityRouter) Update

type IdentityTypeRouter

type IdentityTypeRouter struct {
	BasePath string
}

func NewIdentityTypeRouter

func NewIdentityTypeRouter() *IdentityTypeRouter

func (*IdentityTypeRouter) Detail

func (r *IdentityTypeRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*IdentityTypeRouter) List

func (*IdentityTypeRouter) Register

func (r *IdentityTypeRouter) Register(ae *env.AppEnv)

type JsonFields

type JsonFields map[string]bool

func (JsonFields) AddField

func (j JsonFields) AddField(key string)

func (JsonFields) ConcatNestedNames

func (j JsonFields) ConcatNestedNames() JsonFields

func (JsonFields) FilterMaps

func (j JsonFields) FilterMaps(mapNames ...string) JsonFields

func (JsonFields) IsUpdated

func (j JsonFields) IsUpdated(key string) bool

type LinksFactory added in v0.14.35

type LinksFactory interface {
	Links(entity models.Entity) rest_model.Links
	EntityName() string
}
var CurrentApiSessionLinkFactory LinksFactory = NewCurrentApiSessionLinkFactory()
var CurrentIdentityAuthenticatorLinkFactory LinksFactory = NewCurrentIdentityAuthenticatorLinkFactory()

type ModelCreateF

type ModelCreateF func() (string, error)

type ModelDeleteF

type ModelDeleteF func(rc *response.RequestContext, id string) error

type ModelDetailF

type ModelDetailF func(rc *response.RequestContext, id string) (interface{}, error)

type ModelPatchF

type ModelPatchF func(id string, fields JsonFields) error

type ModelToApiMapper

type ModelToApiMapper func(*env.AppEnv, *response.RequestContext, models.Entity) (interface{}, error)

type ModelUpdateF

type ModelUpdateF func(id string) error

type Paging added in v0.14.33

type Paging struct {
	Offset    int64
	Limit     int64
	ReturnAll bool
}

func GetRequestPaging

func GetRequestPaging(r *http.Request) (*Paging, error)

func (*Paging) String added in v0.14.33

func (paging *Paging) String() string

type ParsedNumber added in v0.14.35

type ParsedNumber interface {
	String() string
	Float64() (float64, error)
	Int64() (int64, error)
}

type PermissionsApi

type PermissionsApi []string

type PostureCheckLinkFactoryImpl added in v0.16.46

type PostureCheckLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewPostureCheckLinkFactory added in v0.16.46

func NewPostureCheckLinkFactory() *PostureCheckLinkFactoryImpl
func (factory *PostureCheckLinkFactoryImpl) Links(entity models.Entity) rest_model.Links

type PostureCheckRouter added in v0.16.46

type PostureCheckRouter struct {
	BasePath string
}

func NewPostureCheckRouter added in v0.16.46

func NewPostureCheckRouter() *PostureCheckRouter

func (*PostureCheckRouter) Create added in v0.16.46

func (*PostureCheckRouter) Delete added in v0.16.46

func (r *PostureCheckRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*PostureCheckRouter) Detail added in v0.16.46

func (r *PostureCheckRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*PostureCheckRouter) List added in v0.16.46

func (*PostureCheckRouter) Patch added in v0.16.46

func (*PostureCheckRouter) Register added in v0.16.46

func (r *PostureCheckRouter) Register(ae *env.AppEnv)

func (*PostureCheckRouter) Update added in v0.16.46

type PostureCheckTypeRouter added in v0.16.48

type PostureCheckTypeRouter struct {
	BasePath string
}

func NewPostureCheckTypeRouter added in v0.16.48

func NewPostureCheckTypeRouter() *PostureCheckTypeRouter

func (*PostureCheckTypeRouter) Detail added in v0.16.48

func (*PostureCheckTypeRouter) List added in v0.16.48

func (*PostureCheckTypeRouter) Register added in v0.16.48

func (r *PostureCheckTypeRouter) Register(ae *env.AppEnv)

type PostureResponseRouter added in v0.17.5

type PostureResponseRouter struct {
	BasePath string
}

func NewPostureResponseRouter added in v0.17.5

func NewPostureResponseRouter() *PostureResponseRouter

func (*PostureResponseRouter) Create added in v0.17.5

func (*PostureResponseRouter) Register added in v0.17.5

func (r *PostureResponseRouter) Register(ae *env.AppEnv)

type QueryOptions

type QueryOptions struct {
	Predicate string
	Sort      string
	Paging    *Paging
}

func GetModelQueryOptionsFromRequest

func GetModelQueryOptionsFromRequest(r *http.Request) (*QueryOptions, error)

func (*QueryOptions) String

func (qo *QueryOptions) String() string

func (*QueryOptions) ValidateAndCorrect

func (qo *QueryOptions) ValidateAndCorrect()

type QueryResult

type QueryResult struct {
	Result           interface{}
	Count            int64
	Limit            int64
	Offset           int64
	FilterableFields []string
}

func NewQueryResult

func NewQueryResult(result interface{}, metadata *models.QueryMetaData) *QueryResult

type ReadDeleteRouter

type ReadDeleteRouter interface {
	List(ae *env.AppEnv, rc *response.RequestContext)
	Detail(ae *env.AppEnv, rc *response.RequestContext)
	Delete(ae *env.AppEnv, rc *response.RequestContext)
}

type ReadOnlyRouter

type ReadOnlyRouter interface {
	List(ae *env.AppEnv, rc *response.RequestContext)
	Detail(ae *env.AppEnv, rc *response.RequestContext)
}

type ReadUpdateRouter

type ReadUpdateRouter interface {
	ReadOnlyRouter
	Update(ae *env.AppEnv, rc *response.RequestContext)
	Patch(ae *env.AppEnv, rc *response.RequestContext)
}

type RoleAttributesRouter

type RoleAttributesRouter struct{}

func NewRoleAttributesRouter

func NewRoleAttributesRouter() *RoleAttributesRouter

func (*RoleAttributesRouter) Register

func (r *RoleAttributesRouter) Register(ae *env.AppEnv)

type RouteEventContext

type RouteEventContext struct {
	AppEnv         *env.AppEnv
	RequestContext *response.RequestContext
}

type SelfLinkFactory added in v0.14.35

type SelfLinkFactory interface {
	SelfLink(entity models.Entity) rest_model.Link
}

type ServiceEdgeRouterPolicyLinkFactoryImpl added in v0.14.35

type ServiceEdgeRouterPolicyLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewServiceEdgeRouterPolicyLinkFactory added in v0.14.35

func NewServiceEdgeRouterPolicyLinkFactory() *ServiceEdgeRouterPolicyLinkFactoryImpl

type ServiceEdgeRouterPolicyRouter

type ServiceEdgeRouterPolicyRouter struct {
	BasePath string
}

func NewServiceEdgeRouterPolicyRouter

func NewServiceEdgeRouterPolicyRouter() *ServiceEdgeRouterPolicyRouter

func (*ServiceEdgeRouterPolicyRouter) Delete

func (*ServiceEdgeRouterPolicyRouter) Detail

func (*ServiceEdgeRouterPolicyRouter) List

func (*ServiceEdgeRouterPolicyRouter) ListEdgeRouters

func (r *ServiceEdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)

func (*ServiceEdgeRouterPolicyRouter) ListServices

func (*ServiceEdgeRouterPolicyRouter) Register

func (r *ServiceEdgeRouterPolicyRouter) Register(ae *env.AppEnv)

type ServiceLinkFactoryIml added in v0.14.35

type ServiceLinkFactoryIml struct {
	BasicLinkFactory
}

func NewServiceLinkFactory added in v0.14.35

func NewServiceLinkFactory() *ServiceLinkFactoryIml
func (factory *ServiceLinkFactoryIml) Links(entity models.Entity) rest_model.Links

type ServicePolicyLinkFactoryImpl added in v0.14.35

type ServicePolicyLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewServicePolicyLinkFactory added in v0.14.35

func NewServicePolicyLinkFactory() *ServicePolicyLinkFactoryImpl

type ServicePolicyRouter

type ServicePolicyRouter struct {
	BasePath string
}

func NewServicePolicyRouter

func NewServicePolicyRouter() *ServicePolicyRouter

func (*ServicePolicyRouter) Create

func (*ServicePolicyRouter) Delete

func (*ServicePolicyRouter) Detail

func (*ServicePolicyRouter) List

func (*ServicePolicyRouter) ListIdentities

func (r *ServicePolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)

func (*ServicePolicyRouter) ListPostureChecks added in v0.17.5

func (r *ServicePolicyRouter) ListPostureChecks(ae *env.AppEnv, rc *response.RequestContext)

func (*ServicePolicyRouter) ListServices

func (r *ServicePolicyRouter) ListServices(ae *env.AppEnv, rc *response.RequestContext)

func (*ServicePolicyRouter) Patch

func (*ServicePolicyRouter) Register

func (r *ServicePolicyRouter) Register(ae *env.AppEnv)

func (*ServicePolicyRouter) Update

type ServiceRouter

type ServiceRouter struct {
	BasePath string
	IdType   response.IdType
}

func NewServiceRouter

func NewServiceRouter() *ServiceRouter

func (*ServiceRouter) Create

func (*ServiceRouter) Delete

func (r *ServiceRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*ServiceRouter) Detail

func (r *ServiceRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*ServiceRouter) List

func (r *ServiceRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*ServiceRouter) Patch

func (*ServiceRouter) Register

func (r *ServiceRouter) Register(ae *env.AppEnv)

func (*ServiceRouter) Update

type SessionRequestResponder

type SessionRequestResponder struct {
	response.Responder
	// contains filtered or unexported fields
}

func (*SessionRequestResponder) RespondWithCreatedId

func (nsr *SessionRequestResponder) RespondWithCreatedId(id string, link rest_model.Link)

type SessionRouter

type SessionRouter struct {
	BasePath string
	IdType   response.IdType
	// contains filtered or unexported fields
}

func NewSessionRouter

func NewSessionRouter() *SessionRouter

func (*SessionRouter) Create

func (*SessionRouter) Delete

func (r *SessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*SessionRouter) Detail

func (r *SessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*SessionRouter) List

func (r *SessionRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*SessionRouter) Register

func (r *SessionRouter) Register(ae *env.AppEnv)

type Spec added in v0.15.16

type Spec struct {
	models.BaseEntity
	// contains filtered or unexported fields
}

type SpecLinkFactoryImpl added in v0.15.16

type SpecLinkFactoryImpl struct {
	BasicLinkFactory
}

func NewSpecLinkFactory added in v0.15.16

func NewSpecLinkFactory() *SpecLinkFactoryImpl
func (factory *SpecLinkFactoryImpl) Links(entity models.Entity) rest_model.Links

type SpecRouter

type SpecRouter struct {
	BasePath string
}

func NewSpecRouter

func NewSpecRouter() *SpecRouter

func (*SpecRouter) Detail

func (r *SpecRouter) Detail(_ *env.AppEnv, rc *response.RequestContext)

func (*SpecRouter) DetailBody added in v0.15.16

func (r *SpecRouter) DetailBody(_ *env.AppEnv, rc *response.RequestContext)

func (*SpecRouter) List

func (r *SpecRouter) List(_ *env.AppEnv, rc *response.RequestContext)

func (*SpecRouter) Register

func (r *SpecRouter) Register(ae *env.AppEnv)

type SummaryRouter

type SummaryRouter struct {
	BasePath string
}

func NewSummaryRouter

func NewSummaryRouter() *SummaryRouter

func (*SummaryRouter) List

func (r *SummaryRouter) List(ae *env.AppEnv, rc *response.RequestContext)

func (*SummaryRouter) Register

func (r *SummaryRouter) Register(ae *env.AppEnv)

type TerminatorRouter

type TerminatorRouter struct {
	BasePath string
}

func NewTerminatorRouter

func NewTerminatorRouter() *TerminatorRouter

func (*TerminatorRouter) Create

func (*TerminatorRouter) Delete

func (r *TerminatorRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)

func (*TerminatorRouter) Detail

func (r *TerminatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)

func (*TerminatorRouter) List

func (*TerminatorRouter) Patch

func (*TerminatorRouter) Register

func (r *TerminatorRouter) Register(ae *env.AppEnv)

func (*TerminatorRouter) Update

type TransitRouterRouter

type TransitRouterRouter struct {
	BasePath string
}

func NewTransitRouterRouter

func NewTransitRouterRouter() *TransitRouterRouter

func (*TransitRouterRouter) Create

func (*TransitRouterRouter) Delete

func (*TransitRouterRouter) Detail

func (*TransitRouterRouter) List

func (*TransitRouterRouter) Patch

func (*TransitRouterRouter) Register

func (r *TransitRouterRouter) Register(ae *env.AppEnv)

func (*TransitRouterRouter) Update

type VersionRouter

type VersionRouter struct {
	BasePath string
}

func NewVersionRouter

func NewVersionRouter() *VersionRouter

func (*VersionRouter) List

func (ir *VersionRouter) List(_ *env.AppEnv, rc *response.RequestContext)

func (*VersionRouter) Register

func (ir *VersionRouter) Register(ae *env.AppEnv)

Jump to

Keyboard shortcuts

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