Documentation
¶
Index ¶
- Constants
- func Create(rc *response.RequestContext, rr response.RequestResponder, ...)
- func Delete(rc *response.RequestContext, idType response.IdType, deleteF ModelDeleteF)
- func DeleteWithHandler(rc *response.RequestContext, idType response.IdType, ...)
- func Detail(rc *response.RequestContext, idType response.IdType, f ModelDetailF)
- func DetailWithHandler(ae *env.AppEnv, rc *response.RequestContext, loader models.EntityRetriever, ...)
- func GetRequestPaging(r *http.Request) (*predicate.Paging, error)
- func GetRequestPredicate(r *http.Request, imap *predicate.IdentifierMap) (*predicate.Predicate, error)
- func GetRequestSort(r *http.Request, imap *predicate.IdentifierMap) (*predicate.Sort, error)
- func List(rc *response.RequestContext, f modelListF)
- func ListAssociationWithHandler(ae *env.AppEnv, rc *response.RequestContext, idType response.IdType, ...)
- func ListAssociations(rc *response.RequestContext, idType response.IdType, listF listAssocF)
- func ListAssociationsWithFilter(ae *env.AppEnv, rc *response.RequestContext, idType response.IdType, ...)
- func ListWithHandler(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, ...)
- func ListWithQueryF(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, ...)
- func MapToIdentityAuthenticatorApiList(_ *env.AppEnv, authenticator *model.Authenticator) (interface{}, error)
- func MapToIdentityEnrollmentApiList(_ *env.AppEnv, enrollment *model.Enrollment) (map[string]interface{}, error)
- func NewApiSessionLink(sessionId string) *response.Link
- func NewEdgeRouterLink(edgeRouterId string) *response.Link
- func NewIdentityLink(identityId string) *response.Link
- func NewServiceLink(sessionId string) *response.Link
- func NewTransitRouterLink(id string) *response.Link
- func Patch(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, ...)
- func Update(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, ...)
- func UpdateAllowEmptyBody(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, ...)
- type AdvisorEdgeRouter
- type AdvisorServiceReachability
- type ApiCreater
- type ApiPatcher
- type ApiSessionApiList
- type ApiSessionRouter
- type ApiUpdater
- type Associater
- type AuthRouter
- type AuthenticatorApiList
- type AuthenticatorCertApi
- type AuthenticatorCreateApi
- type AuthenticatorProperties
- type AuthenticatorRouter
- func (ir *AuthenticatorRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *AuthenticatorRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *AuthenticatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *AuthenticatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *AuthenticatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *AuthenticatorRouter) Register(ae *env.AppEnv)
- func (ir *AuthenticatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type AuthenticatorSelfUpdateApi
- type AuthenticatorUpdateApi
- type AuthenticatorUpdbApi
- type BaseApiEntity
- func MapApiSessionToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapAuthenticatorToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapAuthenticatorsToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.Authenticator) ([]BaseApiEntity, error)
- func MapCaToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapConfigToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapConfigTypeToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapEdgeRouterPolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapEdgeRouterToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapEnrollmentToApiEntity(appEnv *env.AppEnv, context *response.RequestContext, entity models.Entity) (BaseApiEntity, error)
- func MapEventLogToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapGeoRegionToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapIdentityToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapIdentityTypeToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapServiceEdgeRouterPolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapServicePolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapServiceToApiEntity(ae *env.AppEnv, rc *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapServicesToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.ServiceDetail) ([]BaseApiEntity, error)
- func MapSessionToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapSessionsToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.Session) ([]BaseApiEntity, error)
- func MapTerminatorToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
- func MapTransitRouterToApiEntity(appEnv *env.AppEnv, _ *response.RequestContext, entity models.Entity) (BaseApiEntity, error)
- type CaApiCreate
- type CaApiList
- type CaApiUpdate
- type CaRouter
- func (ir *CaRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) Register(ae *env.AppEnv)
- func (ir *CaRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CaRouter) VerifyCert(ae *env.AppEnv, rc *response.RequestContext)
- type ConfigApiList
- type ConfigCreateApi
- type ConfigRouter
- func (ir *ConfigRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigRouter) Register(ae *env.AppEnv)
- func (ir *ConfigRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type ConfigTypeApi
- type ConfigTypeApiList
- type ConfigTypeRouter
- func (ir *ConfigTypeRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) ListConfigs(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ConfigTypeRouter) Register(ae *env.AppEnv)
- func (ir *ConfigTypeRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type ConfigUpdateApi
- type CreateEventHandler
- type CreateReadDeleteOnlyRouter
- type CrudRouter
- type CurrentIdentityAuthenticatorRouter
- func (ir *CurrentIdentityAuthenticatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CurrentIdentityAuthenticatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CurrentIdentityAuthenticatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *CurrentIdentityAuthenticatorRouter) Register(ae *env.AppEnv)
- func (ir *CurrentIdentityAuthenticatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type CurrentSessionApiList
- type CurrentSessionRouter
- type DeleteEventHandler
- type DeleteHandler
- type EdgeRouterApi
- type EdgeRouterApiList
- type EdgeRouterEntityApiRef
- type EdgeRouterPolicyApi
- type EdgeRouterPolicyApiList
- type EdgeRouterPolicyRouter
- func (ir *EdgeRouterPolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterPolicyRouter) Register(ae *env.AppEnv)
- func (ir *EdgeRouterPolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type EdgeRouterRouter
- func (ir *EdgeRouterRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EdgeRouterRouter) Register(ae *env.AppEnv)
- func (ir *EdgeRouterRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type EnrollRouter
- type EnrollmentApiList
- type EnrollmentRouter
- func (ir *EnrollmentRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EnrollmentRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EnrollmentRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *EnrollmentRouter) Register(ae *env.AppEnv)
- func (ir *EnrollmentRouter) ToApiDetailEntity(ae *env.AppEnv, rc *response.RequestContext, e migration.BaseDbModel) (BaseApiEntity, error)
- func (ir *EnrollmentRouter) ToApiListEntity(ae *env.AppEnv, rc *response.RequestContext, e migration.BaseDbModel) (BaseApiEntity, error)
- type EntityApiRef
- func NewApiSessionEntityRef(s *model.ApiSession) *EntityApiRef
- func NewEdgeRouterEntityRef(entity *model.EdgeRouter) *EntityApiRef
- func NewIdentityEntityRef(s *model.Identity) *EntityApiRef
- func NewServiceEntityRef(s *model.Service) *EntityApiRef
- func NewTransitRouterEntityRef(entity *model.TransitRouter) *EntityApiRef
- type EventLogApiList
- type EventLogRouter
- type GeoRegionApiList
- type GeoRegionRouter
- type IdentityApiCreate
- type IdentityApiList
- type IdentityApiUpdate
- type IdentityRouter
- func (ir *IdentityRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *IdentityRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *IdentityRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *IdentityRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *IdentityRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *IdentityRouter) Register(ae *env.AppEnv)
- func (ir *IdentityRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type IdentityServiceConfig
- type IdentityTypeApi
- type IdentityTypeApiList
- type IdentityTypeRouter
- type JsonFields
- type LinkBuilder
- type ModelCreateF
- type ModelDeleteF
- type ModelDetailF
- type ModelPatchF
- type ModelToApiMapper
- type ModelUpdateF
- type NewSession
- type PermissionsApi
- type QueryOptions
- type QueryResult
- type ReadDeleteRouter
- type ReadOnlyRouter
- type ReadUpdateRouter
- type RoleAttributesRouter
- type RootRouter
- type RouteEventContext
- type ServiceApiCreate
- type ServiceApiList
- type ServiceApiUpdate
- type ServiceEdgeRouterPolicyApi
- type ServiceEdgeRouterPolicyApiList
- type ServiceEdgeRouterPolicyRouter
- func (ir *ServiceEdgeRouterPolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) ListServices(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceEdgeRouterPolicyRouter) Register(ae *env.AppEnv)
- func (ir *ServiceEdgeRouterPolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type ServicePolicyApi
- type ServicePolicyApiList
- type ServicePolicyRouter
- func (ir *ServicePolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) ListServices(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServicePolicyRouter) Register(ae *env.AppEnv)
- func (ir *ServicePolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type ServiceRouter
- func (ir *ServiceRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *ServiceRouter) Register(ae *env.AppEnv)
- func (ir *ServiceRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type SessionApiList
- type SessionApiPost
- type SessionEdgeRouter
- type SessionRequestResponder
- type SessionRouter
- func (ir *SessionRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *SessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *SessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *SessionRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *SessionRouter) Register(ae *env.AppEnv)
- type SpecRouter
- type SummaryRouter
- type TerminatorApi
- type TerminatorApiList
- type TerminatorRouter
- func (ir *TerminatorRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TerminatorRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TerminatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TerminatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TerminatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TerminatorRouter) Register(ae *env.AppEnv)
- func (ir *TerminatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type ToBaseModelConverter
- type TransitRouterApi
- type TransitRouterApiList
- type TransitRouterRouter
- func (ir *TransitRouterRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TransitRouterRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TransitRouterRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TransitRouterRouter) List(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TransitRouterRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
- func (ir *TransitRouterRouter) Register(ae *env.AppEnv)
- func (ir *TransitRouterRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
- type VersionRouter
Constants ¶
View Source
const ( EntityNameIdentity = "identities" EntityNameIdentityServiceConfig = "service-configs" )
View Source
const ( LimitMax = 500 OffsetMax = 100000 LimitDefault = 10 OffsetDefault = 0 )
View Source
const ( PathEdgeRouterRoleAttributes = "/edge-router-role-attributes" PathIdentityRoleAttributes = "/identity-role-attributes" PathServiceRoleAttributes = "/service-role-attributes" )
View Source
const ( EntityNameSpec = "specs" EntityNameSpecBody = "spec" SwaggerId = "swagger" )
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 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 EntityNameEventLog = "event-logs"
View Source
const EntityNameGeoRegion = "geo-regions"
View Source
const EntityNameIdentityType = "identity-types"
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 EntityNameTerminator = "terminators"
View Source
const EntityNameTransitRouter = "transit-routers"
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(rc *response.RequestContext, rr response.RequestResponder, sc *gojsonschema.Schema, in interface{}, lb LinkBuilder, creator ModelCreateF)
func Delete ¶
func Delete(rc *response.RequestContext, idType response.IdType, deleteF ModelDeleteF)
func DeleteWithHandler ¶
func DeleteWithHandler(rc *response.RequestContext, idType response.IdType, deleteHandler DeleteHandler)
func Detail ¶
func Detail(rc *response.RequestContext, idType response.IdType, f ModelDetailF)
func DetailWithHandler ¶
func DetailWithHandler(ae *env.AppEnv, rc *response.RequestContext, loader models.EntityRetriever, mapper ModelToApiMapper, idType response.IdType)
func GetRequestPredicate ¶
func GetRequestSort ¶
func List ¶
func List(rc *response.RequestContext, f modelListF)
func ListAssociationWithHandler ¶ added in v0.12.0
func ListAssociationWithHandler(ae *env.AppEnv, rc *response.RequestContext, idType response.IdType, lister models.EntityRetriever, associationLoader models.EntityRetriever, mapper ModelToApiMapper)
func ListAssociations ¶
func ListAssociations(rc *response.RequestContext, idType response.IdType, listF listAssocF)
func ListAssociationsWithFilter ¶ added in v0.12.9
func ListAssociationsWithFilter(ae *env.AppEnv, rc *response.RequestContext, idType response.IdType, filterTemplate string, entityController models.EntityRetriever, mapper ModelToApiMapper)
func ListWithHandler ¶
func ListWithHandler(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, mapper ModelToApiMapper)
func ListWithQueryF ¶ added in v0.12.17
func ListWithQueryF(ae *env.AppEnv, rc *response.RequestContext, lister models.EntityRetriever, mapper ModelToApiMapper, qf queryF)
func MapToIdentityAuthenticatorApiList ¶
func MapToIdentityAuthenticatorApiList(_ *env.AppEnv, authenticator *model.Authenticator) (interface{}, error)
func NewApiSessionLink ¶
func NewEdgeRouterLink ¶ added in v0.12.0
func NewIdentityLink ¶
func NewServiceLink ¶
func NewTransitRouterLink ¶ added in v0.12.25
func Patch ¶
func Patch(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, in interface{}, patchF ModelPatchF)
func Update ¶
func Update(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, in interface{}, updateF ModelUpdateF)
func UpdateAllowEmptyBody ¶
func UpdateAllowEmptyBody(rc *response.RequestContext, sc *gojsonschema.Schema, idType response.IdType, in interface{}, emptyBodyAllowed bool, updateF ModelUpdateF)
Types ¶
type AdvisorEdgeRouter ¶ added in v0.13.0
type AdvisorEdgeRouter struct {
*EntityApiRef
IsOnline bool `json:"isOnline"`
}
type AdvisorServiceReachability ¶ added in v0.13.0
type AdvisorServiceReachability struct {
IdentityId string `json:"identityId"`
Identity *EntityApiRef `json:"identity"`
ServiceId string `json:"serviceId"`
Service *EntityApiRef `json:"service"`
IsBindAllowed bool `json:"isBindAllowed"`
IsDialAllowed bool `json:"isDialAllowed"`
IdentityRouterCount int `json:"identityRouterCount"`
ServiceRouterCount int `json:"serviceRouterCount"`
CommonRouters []*AdvisorEdgeRouter `json:"commonRouters"`
}
func MapAdvisorServiceReachabilityToApiEntity ¶ added in v0.13.0
func MapAdvisorServiceReachabilityToApiEntity(entity *model.AdvisorServiceReachability) *AdvisorServiceReachability
type ApiCreater ¶
type ApiCreater interface {
Create(ae *env.AppEnv, rc *response.RequestContext) (migration.BaseDbModel, error)
}
type ApiPatcher ¶
type ApiPatcher interface {
Patch(ae *env.AppEnv, rc *response.RequestContext, existing migration.BaseDbModel) (migration.BaseDbModel, error)
}
type ApiSessionApiList ¶
type ApiSessionApiList struct {
*env.BaseApi
Token *string `json:"token"`
Identity *EntityApiRef `json:"identity"`
ConfigTypes []string `json:"configTypes"`
}
func MapApiSessionToApiList ¶
func MapApiSessionToApiList(i *model.ApiSession) (*ApiSessionApiList, error)
func (ApiSessionApiList) BuildSelfLink ¶
func (ApiSessionApiList) BuildSelfLink(id string) *response.Link
func (*ApiSessionApiList) GetSelfLink ¶
func (e *ApiSessionApiList) GetSelfLink() *response.Link
func (*ApiSessionApiList) PopulateLinks ¶
func (e *ApiSessionApiList) PopulateLinks()
func (*ApiSessionApiList) ToEntityApiRef ¶
func (e *ApiSessionApiList) ToEntityApiRef() *EntityApiRef
type ApiSessionRouter ¶
func NewApiSessionRouter ¶
func NewApiSessionRouter() *ApiSessionRouter
func (*ApiSessionRouter) Delete ¶
func (ir *ApiSessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ApiSessionRouter) Detail ¶
func (ir *ApiSessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ApiSessionRouter) List ¶
func (ir *ApiSessionRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ApiSessionRouter) Register ¶
func (ir *ApiSessionRouter) Register(ae *env.AppEnv)
type ApiUpdater ¶
type ApiUpdater interface {
Update(ae *env.AppEnv, rc *response.RequestContext, existing migration.BaseDbModel) (migration.BaseDbModel, error)
}
type Associater ¶
type Associater interface {
Add(parent migration.BaseDbModel, child []migration.BaseDbModel) error
Remove(parent migration.BaseDbModel, child []migration.BaseDbModel) error
Set(parent migration.BaseDbModel, child []migration.BaseDbModel) error
}
type AuthRouter ¶
type AuthRouter struct {
}
func NewAuthRouter ¶
func NewAuthRouter() *AuthRouter
func (*AuthRouter) Register ¶
func (ro *AuthRouter) Register(ae *env.AppEnv)
type AuthenticatorApiList ¶ added in v0.9.6
type AuthenticatorApiList struct {
*env.BaseApi
Method *string `json:"method"`
IdentityId *string `json:"identityId"`
*AuthenticatorProperties
Tags map[string]interface{} `json:"tags"`
}
func MapAuthenticatorToApiList ¶ added in v0.9.6
func MapAuthenticatorToApiList(i *model.Authenticator) (*AuthenticatorApiList, error)
func (AuthenticatorApiList) BuildSelfLink ¶ added in v0.9.6
func (AuthenticatorApiList) BuildSelfLink(id string) *response.Link
func (*AuthenticatorApiList) GetSelfLink ¶ added in v0.9.6
func (c *AuthenticatorApiList) GetSelfLink() *response.Link
func (*AuthenticatorApiList) PopulateLinks ¶ added in v0.9.6
func (c *AuthenticatorApiList) PopulateLinks()
func (*AuthenticatorApiList) ToEntityApiRef ¶ added in v0.9.6
func (c *AuthenticatorApiList) ToEntityApiRef() *EntityApiRef
type AuthenticatorCertApi ¶
type AuthenticatorCertApi struct {
Fingerprint string `json:"fingerprint"`
}
type AuthenticatorCreateApi ¶ added in v0.9.6
type AuthenticatorCreateApi struct {
Method *string `json:"method"`
IdentityId *string `json:"identityId"`
AuthenticatorProperties
Tags map[string]interface{} `json:"tags"`
}
func (*AuthenticatorCreateApi) FillFromMap ¶ added in v0.9.6
func (i *AuthenticatorCreateApi) FillFromMap(in map[string]interface{})
func (*AuthenticatorCreateApi) ToModel ¶ added in v0.9.6
func (i *AuthenticatorCreateApi) ToModel(id string) *model.Authenticator
type AuthenticatorProperties ¶ added in v0.9.6
type AuthenticatorRouter ¶ added in v0.9.6
func NewAuthenticatorRouter ¶ added in v0.9.6
func NewAuthenticatorRouter() *AuthenticatorRouter
func (*AuthenticatorRouter) Create ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*AuthenticatorRouter) Delete ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*AuthenticatorRouter) Detail ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*AuthenticatorRouter) List ¶ added in v0.9.6
func (ir *AuthenticatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*AuthenticatorRouter) Patch ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*AuthenticatorRouter) Register ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Register(ae *env.AppEnv)
func (*AuthenticatorRouter) Update ¶ added in v0.9.6
func (ir *AuthenticatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type AuthenticatorSelfUpdateApi ¶ added in v0.10.0
type AuthenticatorSelfUpdateApi struct {
Username *string `json:"username, omitempty"`
NewPassword *string `json:"newPassword, omitempty"`
CurrentPassword *string `json:"currentPassword, omitempty"`
Tags map[string]interface{} `json:"tags"`
}
func (*AuthenticatorSelfUpdateApi) ToModel ¶ added in v0.10.0
func (i *AuthenticatorSelfUpdateApi) ToModel(id, identityId string) *model.AuthenticatorSelf
type AuthenticatorUpdateApi ¶ added in v0.9.6
type AuthenticatorUpdateApi struct {
AuthenticatorProperties
Tags map[string]interface{} `json:"tags"`
}
func (*AuthenticatorUpdateApi) FillFromMap ¶ added in v0.9.6
func (i *AuthenticatorUpdateApi) FillFromMap(in map[string]interface{})
func (*AuthenticatorUpdateApi) ToModel ¶ added in v0.9.6
func (i *AuthenticatorUpdateApi) ToModel(id string) *model.Authenticator
type AuthenticatorUpdbApi ¶
type AuthenticatorUpdbApi struct {
Username string `json:"username"`
}
type BaseApiEntity ¶
type BaseApiEntity interface {
GetSelfLink() *response.Link
BuildSelfLink(id string) *response.Link
PopulateLinks()
ToEntityApiRef() *EntityApiRef
}
func MapApiSessionToApiEntity ¶
func MapApiSessionToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapAuthenticatorToApiEntity ¶ added in v0.9.6
func MapAuthenticatorToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapAuthenticatorsToApiEntities ¶ added in v0.9.6
func MapAuthenticatorsToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.Authenticator) ([]BaseApiEntity, error)
func MapCaToApiEntity ¶
func MapCaToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapConfigToApiEntity ¶
func MapConfigToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapConfigTypeToApiEntity ¶
func MapConfigTypeToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapEdgeRouterPolicyToApiEntity ¶
func MapEdgeRouterPolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapEdgeRouterToApiEntity ¶
func MapEdgeRouterToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapEnrollmentToApiEntity ¶
func MapEnrollmentToApiEntity(appEnv *env.AppEnv, context *response.RequestContext, entity models.Entity) (BaseApiEntity, error)
func MapEventLogToApiEntity ¶
func MapEventLogToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapGeoRegionToApiEntity ¶
func MapGeoRegionToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapIdentityToApiEntity ¶
func MapIdentityToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapIdentityTypeToApiEntity ¶
func MapIdentityTypeToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapServiceEdgeRouterPolicyToApiEntity ¶
func MapServiceEdgeRouterPolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapServicePolicyToApiEntity ¶
func MapServicePolicyToApiEntity(_ *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapServiceToApiEntity ¶
func MapServiceToApiEntity(ae *env.AppEnv, rc *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapServicesToApiEntities ¶
func MapServicesToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.ServiceDetail) ([]BaseApiEntity, error)
func MapSessionToApiEntity ¶
func MapSessionToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapSessionsToApiEntities ¶
func MapSessionsToApiEntities(ae *env.AppEnv, rc *response.RequestContext, es []*model.Session) ([]BaseApiEntity, error)
func MapTerminatorToApiEntity ¶ added in v0.12.0
func MapTerminatorToApiEntity(ae *env.AppEnv, _ *response.RequestContext, e models.Entity) (BaseApiEntity, error)
func MapTransitRouterToApiEntity ¶ added in v0.12.25
func MapTransitRouterToApiEntity(appEnv *env.AppEnv, _ *response.RequestContext, entity models.Entity) (BaseApiEntity, error)
type CaApiCreate ¶
type CaApiCreate struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
CertPem *string `json:"certPem"`
IsAutoCaEnrollmentEnabled *bool `json:"isAutoCaEnrollmentEnabled"`
IsOttCaEnrollmentEnabled *bool `json:"isOttCaEnrollmentEnabled"`
IsAuthEnabled *bool `json:"isAuthEnabled"`
IdentityRoles []string `json:"identityRoles"`
}
func (*CaApiCreate) ToModel ¶
func (i *CaApiCreate) ToModel() *model.Ca
type CaApiList ¶
type CaApiList struct {
*env.BaseApi
Name *string `json:"name"`
Fingerprint *string `json:"fingerprint"`
CertPem *string `json:"certPem"`
IsVerified *bool `json:"isVerified"`
VerificationToken *string `json:"verificationToken"`
IsAutoCaEnrollmentEnabled *bool `json:"isAutoCaEnrollmentEnabled"`
IsOttCaEnrollmentEnabled *bool `json:"isOttCaEnrollmentEnabled"`
IsAuthEnabled *bool `json:"isAuthEnabled"`
IdentityRoles []string `json:"identityRoles"`
}
func (*CaApiList) GetSelfLink ¶
func (*CaApiList) PopulateLinks ¶
func (e *CaApiList) PopulateLinks()
func (*CaApiList) ToEntityApiRef ¶
func (e *CaApiList) ToEntityApiRef() *EntityApiRef
type CaApiUpdate ¶
type CaApiUpdate struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
IsAutoCaEnrollmentEnabled *bool `json:"isAutoCaEnrollmentEnabled"`
IsOttCaEnrollmentEnabled *bool `json:"isOttCaEnrollmentEnabled"`
IsAuthEnabled *bool `json:"isAuthEnabled"`
IdentityRoles []string `json:"identityRoles"`
}
type CaRouter ¶
func NewCaRouter ¶
func NewCaRouter() *CaRouter
func (*CaRouter) VerifyCert ¶
func (ir *CaRouter) VerifyCert(ae *env.AppEnv, rc *response.RequestContext)
type ConfigApiList ¶
type ConfigApiList struct {
*env.BaseApi
Name string `json:"name"`
Type string `json:"type"`
Data map[string]interface{} `json:"data"`
}
func MapConfigToApiList ¶
func MapConfigToApiList(i *model.Config) (*ConfigApiList, error)
func (ConfigApiList) BuildSelfLink ¶
func (ConfigApiList) BuildSelfLink(id string) *response.Link
func (*ConfigApiList) GetSelfLink ¶
func (c *ConfigApiList) GetSelfLink() *response.Link
func (*ConfigApiList) PopulateLinks ¶
func (c *ConfigApiList) PopulateLinks()
func (*ConfigApiList) ToEntityApiRef ¶
func (c *ConfigApiList) ToEntityApiRef() *EntityApiRef
type ConfigCreateApi ¶
type ConfigCreateApi struct {
Name *string `json:"name"`
Type *string `json:"type"`
Data map[string]interface{} `json:"data"`
Tags map[string]interface{} `json:"tags"`
}
func (*ConfigCreateApi) ToModel ¶
func (i *ConfigCreateApi) ToModel() *model.Config
type ConfigRouter ¶
func NewConfigRouter ¶
func NewConfigRouter() *ConfigRouter
func (*ConfigRouter) Create ¶
func (ir *ConfigRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigRouter) Delete ¶
func (ir *ConfigRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigRouter) Detail ¶
func (ir *ConfigRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigRouter) List ¶
func (ir *ConfigRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigRouter) Patch ¶
func (ir *ConfigRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigRouter) Register ¶
func (ir *ConfigRouter) Register(ae *env.AppEnv)
func (*ConfigRouter) Update ¶
func (ir *ConfigRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type ConfigTypeApi ¶
type ConfigTypeApi struct {
Name *string `json:"name"`
Schema map[string]interface{} `json:"schema"`
Tags map[string]interface{} `json:"tags"`
}
func (*ConfigTypeApi) ToModel ¶
func (i *ConfigTypeApi) ToModel(id string) *model.ConfigType
type ConfigTypeApiList ¶
type ConfigTypeApiList struct {
*env.BaseApi
Name string `json:"name"`
Schema map[string]interface{} `json:"schema"`
}
func MapConfigTypeToApiList ¶
func MapConfigTypeToApiList(i *model.ConfigType) (*ConfigTypeApiList, error)
func (ConfigTypeApiList) BuildSelfLink ¶
func (ConfigTypeApiList) BuildSelfLink(id string) *response.Link
func (*ConfigTypeApiList) GetSelfLink ¶
func (c *ConfigTypeApiList) GetSelfLink() *response.Link
func (*ConfigTypeApiList) PopulateLinks ¶
func (c *ConfigTypeApiList) PopulateLinks()
func (*ConfigTypeApiList) ToEntityApiRef ¶
func (c *ConfigTypeApiList) ToEntityApiRef() *EntityApiRef
type ConfigTypeRouter ¶
func NewConfigTypeRouter ¶
func NewConfigTypeRouter() *ConfigTypeRouter
func (*ConfigTypeRouter) Create ¶
func (ir *ConfigTypeRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) Delete ¶
func (ir *ConfigTypeRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) Detail ¶
func (ir *ConfigTypeRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) List ¶
func (ir *ConfigTypeRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) ListConfigs ¶
func (ir *ConfigTypeRouter) ListConfigs(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) Patch ¶
func (ir *ConfigTypeRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*ConfigTypeRouter) Register ¶
func (ir *ConfigTypeRouter) Register(ae *env.AppEnv)
func (*ConfigTypeRouter) Update ¶
func (ir *ConfigTypeRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type ConfigUpdateApi ¶
type CreateEventHandler ¶
type CreateEventHandler interface {
BeforeStoreCreate(rc *RouteEventContext, modelEntity interface{}) error
}
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 CurrentIdentityAuthenticatorRouter ¶ added in v0.9.6
func NewCurrentIdentityAuthenticatorRouter ¶ added in v0.9.6
func NewCurrentIdentityAuthenticatorRouter() *CurrentIdentityAuthenticatorRouter
func (*CurrentIdentityAuthenticatorRouter) Detail ¶ added in v0.9.6
func (ir *CurrentIdentityAuthenticatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*CurrentIdentityAuthenticatorRouter) List ¶ added in v0.9.6
func (ir *CurrentIdentityAuthenticatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*CurrentIdentityAuthenticatorRouter) Patch ¶ added in v0.9.6
func (ir *CurrentIdentityAuthenticatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*CurrentIdentityAuthenticatorRouter) Register ¶ added in v0.9.6
func (ir *CurrentIdentityAuthenticatorRouter) Register(ae *env.AppEnv)
func (*CurrentIdentityAuthenticatorRouter) Update ¶ added in v0.9.6
func (ir *CurrentIdentityAuthenticatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type CurrentSessionApiList ¶
type CurrentSessionApiList struct {
*env.BaseApi
Token *string `json:"token"`
Identity *EntityApiRef `json:"identity"`
ExpiresAt *time.Time `json:"expiresAt"`
ConfigTypes []string `json:"configTypes"`
}
func RenderCurrentSessionApiListEntity ¶
func RenderCurrentSessionApiListEntity(s *model.ApiSession, sessionTimeout time.Duration) (*CurrentSessionApiList, error)
func (CurrentSessionApiList) BuildSelfLink ¶
func (CurrentSessionApiList) BuildSelfLink(_ string) *response.Link
func (*CurrentSessionApiList) GetSelfLink ¶
func (e *CurrentSessionApiList) GetSelfLink() *response.Link
func (*CurrentSessionApiList) PopulateLinks ¶
func (e *CurrentSessionApiList) PopulateLinks()
func (*CurrentSessionApiList) ToEntityApiRef ¶
func (e *CurrentSessionApiList) ToEntityApiRef() *EntityApiRef
type CurrentSessionRouter ¶
type CurrentSessionRouter struct {
}
func NewCurrentSessionRouter ¶
func NewCurrentSessionRouter() *CurrentSessionRouter
func (*CurrentSessionRouter) Delete ¶
func (ir *CurrentSessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*CurrentSessionRouter) Detail ¶
func (ir *CurrentSessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*CurrentSessionRouter) Register ¶
func (ir *CurrentSessionRouter) Register(ae *env.AppEnv)
type DeleteEventHandler ¶
type DeleteEventHandler interface {
BeforeStoreDelete(rc *RouteEventContext, id string) error
}
type DeleteHandler ¶
type EdgeRouterApi ¶
type EdgeRouterApi struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
RoleAttributes []string `json:"roleAttributes"`
}
func (*EdgeRouterApi) ToModel ¶
func (i *EdgeRouterApi) ToModel(id string) *model.EdgeRouter
type EdgeRouterApiList ¶
type EdgeRouterApiList struct {
*env.BaseApi
Name *string `json:"name"`
Fingerprint *string `json:"fingerprint"`
RoleAttributes []string `json:"roleAttributes"`
IsVerified *bool `json:"isVerified"`
IsOnline *bool `json:"isOnline"`
EnrollmentToken *string `json:"enrollmentToken"`
EnrollmentJwt *string `json:"enrollmentJwt"`
EnrollmentCreatedAt *time.Time `json:"enrollmentCreatedAt"`
EnrollmentExpiresAt *time.Time `json:"enrollmentExpiresAt"`
Hostname *string `json:"hostname"`
SupportedProtocols map[string]string `json:"supportedProtocols"`
}
func MapEdgeRouterToApiList ¶
func MapEdgeRouterToApiList(ae *env.AppEnv, i *model.EdgeRouter) (*EdgeRouterApiList, error)
func (EdgeRouterApiList) BuildSelfLink ¶
func (EdgeRouterApiList) BuildSelfLink(id string) *response.Link
func (*EdgeRouterApiList) GetSelfLink ¶
func (e *EdgeRouterApiList) GetSelfLink() *response.Link
func (*EdgeRouterApiList) PopulateLinks ¶
func (e *EdgeRouterApiList) PopulateLinks()
func (*EdgeRouterApiList) ToEntityApiRef ¶
func (e *EdgeRouterApiList) ToEntityApiRef() *EntityApiRef
type EdgeRouterEntityApiRef ¶
type EdgeRouterEntityApiRef struct {
*EntityApiRef
Url *string `json:"url"`
}
type EdgeRouterPolicyApi ¶
type EdgeRouterPolicyApi struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
Semantic *string `json:"semantic"`
EdgeRouterRoles []string `json:"edgeRouterRoles"`
IdentityRoles []string `json:"identityRoles"`
}
func (*EdgeRouterPolicyApi) ToModel ¶
func (i *EdgeRouterPolicyApi) ToModel(id string) *model.EdgeRouterPolicy
type EdgeRouterPolicyApiList ¶
type EdgeRouterPolicyApiList struct {
*env.BaseApi
Name string `json:"name"`
Semantic string `json:"semantic"`
EdgeRouterRoles []string `json:"edgeRouterRoles"`
IdentityRoles []string `json:"identityRoles"`
}
func MapEdgeRouterPolicyToApiList ¶
func MapEdgeRouterPolicyToApiList(i *model.EdgeRouterPolicy) (*EdgeRouterPolicyApiList, error)
func (EdgeRouterPolicyApiList) BuildSelfLink ¶
func (EdgeRouterPolicyApiList) BuildSelfLink(id string) *response.Link
func (*EdgeRouterPolicyApiList) GetSelfLink ¶
func (c *EdgeRouterPolicyApiList) GetSelfLink() *response.Link
func (*EdgeRouterPolicyApiList) PopulateLinks ¶
func (c *EdgeRouterPolicyApiList) PopulateLinks()
func (*EdgeRouterPolicyApiList) ToEntityApiRef ¶
func (c *EdgeRouterPolicyApiList) ToEntityApiRef() *EntityApiRef
type EdgeRouterPolicyRouter ¶
func NewEdgeRouterPolicyRouter ¶
func NewEdgeRouterPolicyRouter() *EdgeRouterPolicyRouter
func (*EdgeRouterPolicyRouter) Create ¶
func (ir *EdgeRouterPolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) Delete ¶
func (ir *EdgeRouterPolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) Detail ¶
func (ir *EdgeRouterPolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) List ¶
func (ir *EdgeRouterPolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) ListEdgeRouters ¶
func (ir *EdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) ListIdentities ¶
func (ir *EdgeRouterPolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) Patch ¶
func (ir *EdgeRouterPolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterPolicyRouter) Register ¶
func (ir *EdgeRouterPolicyRouter) Register(ae *env.AppEnv)
func (*EdgeRouterPolicyRouter) Update ¶
func (ir *EdgeRouterPolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type EdgeRouterRouter ¶
func NewEdgeRouterRouter ¶
func NewEdgeRouterRouter() *EdgeRouterRouter
func (*EdgeRouterRouter) Create ¶
func (ir *EdgeRouterRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterRouter) Delete ¶
func (ir *EdgeRouterRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterRouter) Detail ¶
func (ir *EdgeRouterRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterRouter) List ¶
func (ir *EdgeRouterRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterRouter) Patch ¶
func (ir *EdgeRouterRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*EdgeRouterRouter) Register ¶
func (ir *EdgeRouterRouter) Register(ae *env.AppEnv)
func (*EdgeRouterRouter) Update ¶
func (ir *EdgeRouterRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type EnrollRouter ¶
type EnrollRouter struct {
}
func NewEnrollRouter ¶
func NewEnrollRouter() *EnrollRouter
func (*EnrollRouter) Register ¶
func (ro *EnrollRouter) Register(ae *env.AppEnv)
func (*EnrollRouter) Respond ¶
func (ro *EnrollRouter) Respond(rc *response.RequestContext, enrollmentResult *model.EnrollmentResult) error
type EnrollmentApiList ¶
type EnrollmentApiList struct {
*env.BaseApi
Token *string `json:"token"`
Method *string `json:"method"`
ExpiresAt *time.Time `json:"expiresAt"`
Identity *EntityApiRef `json:"identity"`
Details interface{} `json:"details"`
EdgeRouter *EntityApiRef `json:"edgeRouter"`
TransitRouter *EntityApiRef `json:"transitRouter"`
}
func MapToEnrollmentApiList ¶
func MapToEnrollmentApiList(ae *env.AppEnv, enrollment *model.Enrollment) (*EnrollmentApiList, error)
func NewEnrollmentApiList ¶
func NewEnrollmentApiList(ae *env.AppEnv, i *migration.Enrollment) (*EnrollmentApiList, error)
func (EnrollmentApiList) BuildSelfLink ¶
func (EnrollmentApiList) BuildSelfLink(id string) *response.Link
func (*EnrollmentApiList) GetSelfLink ¶
func (e *EnrollmentApiList) GetSelfLink() *response.Link
func (*EnrollmentApiList) PopulateLinks ¶
func (e *EnrollmentApiList) PopulateLinks()
func (*EnrollmentApiList) ToEntityApiRef ¶
func (e *EnrollmentApiList) ToEntityApiRef() *EntityApiRef
type EnrollmentRouter ¶
func NewEnrollmentRouter ¶
func NewEnrollmentRouter() *EnrollmentRouter
func (*EnrollmentRouter) Delete ¶
func (ir *EnrollmentRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*EnrollmentRouter) Detail ¶
func (ir *EnrollmentRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*EnrollmentRouter) List ¶
func (ir *EnrollmentRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*EnrollmentRouter) Register ¶
func (ir *EnrollmentRouter) Register(ae *env.AppEnv)
func (*EnrollmentRouter) ToApiDetailEntity ¶
func (ir *EnrollmentRouter) ToApiDetailEntity(ae *env.AppEnv, rc *response.RequestContext, e migration.BaseDbModel) (BaseApiEntity, error)
func (*EnrollmentRouter) ToApiListEntity ¶
func (ir *EnrollmentRouter) ToApiListEntity(ae *env.AppEnv, rc *response.RequestContext, e migration.BaseDbModel) (BaseApiEntity, error)
type EntityApiRef ¶
type EntityApiRef struct {
Entity string `json:"entity"`
Id string `json:"id"`
Name *string `json:"name"`
Links *response.Links `json:"_links"`
}
func NewApiSessionEntityRef ¶
func NewApiSessionEntityRef(s *model.ApiSession) *EntityApiRef
func NewEdgeRouterEntityRef ¶ added in v0.12.0
func NewEdgeRouterEntityRef(entity *model.EdgeRouter) *EntityApiRef
func NewIdentityEntityRef ¶
func NewIdentityEntityRef(s *model.Identity) *EntityApiRef
func NewServiceEntityRef ¶
func NewServiceEntityRef(s *model.Service) *EntityApiRef
func NewTransitRouterEntityRef ¶ added in v0.12.25
func NewTransitRouterEntityRef(entity *model.TransitRouter) *EntityApiRef
func (*EntityApiRef) ToMap ¶
func (e *EntityApiRef) ToMap() map[string]interface{}
func (*EntityApiRef) ToMapError ¶
func (e *EntityApiRef) ToMapError(msg string) *apierror.GenericCauseError
type EventLogApiList ¶
type EventLogApiList struct {
*env.BaseApi
Type string `json:"type"`
ActorType string `json:"actorType"`
ActorId string `json:"actorId"`
EntityType string `json:"entityType"`
EntityId string `json:"entityId"`
FormattedMessage string `json:"formattedMessage"`
FormatString string `json:"formatString"`
FormatData string `json:"formatData"`
Data map[string]interface{} `json:"data"`
}
func MapEventLogToApiList ¶
func MapEventLogToApiList(i *model.EventLog) (*EventLogApiList, error)
func (EventLogApiList) BuildSelfLink ¶
func (EventLogApiList) BuildSelfLink(id string) *response.Link
func (*EventLogApiList) GetSelfLink ¶
func (e *EventLogApiList) GetSelfLink() *response.Link
func (*EventLogApiList) PopulateLinks ¶
func (e *EventLogApiList) PopulateLinks()
func (*EventLogApiList) ToEntityApiRef ¶
func (e *EventLogApiList) ToEntityApiRef() *EntityApiRef
type EventLogRouter ¶
func NewEventLogRouter ¶
func NewEventLogRouter() *EventLogRouter
func (*EventLogRouter) Detail ¶
func (ir *EventLogRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*EventLogRouter) List ¶
func (ir *EventLogRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*EventLogRouter) Register ¶
func (ir *EventLogRouter) Register(ae *env.AppEnv)
type GeoRegionApiList ¶
func MapGeoRegionToApiList ¶
func MapGeoRegionToApiList(i *model.GeoRegion) (*GeoRegionApiList, error)
func (GeoRegionApiList) BuildSelfLink ¶
func (GeoRegionApiList) BuildSelfLink(id string) *response.Link
func (*GeoRegionApiList) GetSelfLink ¶
func (e *GeoRegionApiList) GetSelfLink() *response.Link
func (*GeoRegionApiList) PopulateLinks ¶
func (e *GeoRegionApiList) PopulateLinks()
func (*GeoRegionApiList) ToEntityApiRef ¶
func (e *GeoRegionApiList) ToEntityApiRef() *EntityApiRef
type GeoRegionRouter ¶
func NewGeoRegionRouter ¶
func NewGeoRegionRouter() *GeoRegionRouter
func (*GeoRegionRouter) Detail ¶
func (ir *GeoRegionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*GeoRegionRouter) List ¶
func (ir *GeoRegionRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*GeoRegionRouter) Register ¶
func (ir *GeoRegionRouter) Register(ae *env.AppEnv)
type IdentityApiCreate ¶
type IdentityApiCreate struct {
Tags map[string]interface{} `json:"tags"`
Enrollment map[string]interface{} `json:"enrollment"`
Name *string `json:"name"`
Type *string `json:"type"`
IsAdmin *bool `json:"isAdmin"`
RoleAttributes []string `json:"roleAttributes"`
}
func NewIdentityApiCreate ¶
func NewIdentityApiCreate() *IdentityApiCreate
func (*IdentityApiCreate) ToModel ¶
func (i *IdentityApiCreate) ToModel() (*model.Identity, []*model.Enrollment)
type IdentityApiList ¶
type IdentityApiList struct {
*env.BaseApi
Name *string `json:"name"`
Type *EntityApiRef `json:"type"`
IsDefaultAdmin *bool `json:"isDefaultAdmin"`
IsAdmin *bool `json:"isAdmin"`
Authenticators map[string]interface{} `json:"authenticators"`
Enrollments map[string]interface{} `json:"enrollment"` //per original API "enrollment" is correct
RoleAttributes []string `json:"roleAttributes"`
}
func MapToIdentityApiList ¶
func (IdentityApiList) BuildSelfLink ¶
func (IdentityApiList) BuildSelfLink(id string) *response.Link
func (*IdentityApiList) GetSelfLink ¶
func (e *IdentityApiList) GetSelfLink() *response.Link
func (*IdentityApiList) PopulateLinks ¶
func (e *IdentityApiList) PopulateLinks()
func (*IdentityApiList) ToEntityApiRef ¶
func (e *IdentityApiList) ToEntityApiRef() *EntityApiRef
type IdentityApiUpdate ¶
type IdentityRouter ¶
func NewIdentityRouter ¶
func NewIdentityRouter() *IdentityRouter
func (*IdentityRouter) Create ¶
func (ir *IdentityRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityRouter) Delete ¶
func (ir *IdentityRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityRouter) Detail ¶
func (ir *IdentityRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityRouter) List ¶
func (ir *IdentityRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityRouter) Patch ¶
func (ir *IdentityRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityRouter) Register ¶
func (ir *IdentityRouter) Register(ae *env.AppEnv)
func (*IdentityRouter) Update ¶
func (ir *IdentityRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type IdentityServiceConfig ¶
type IdentityTypeApi ¶
type IdentityTypeApiList ¶
func MapIdentityTypeToApiList ¶
func MapIdentityTypeToApiList(i *model.IdentityType) (*IdentityTypeApiList, error)
func (IdentityTypeApiList) BuildSelfLink ¶
func (IdentityTypeApiList) BuildSelfLink(id string) *response.Link
func (*IdentityTypeApiList) GetSelfLink ¶
func (e *IdentityTypeApiList) GetSelfLink() *response.Link
func (*IdentityTypeApiList) PopulateLinks ¶
func (e *IdentityTypeApiList) PopulateLinks()
func (*IdentityTypeApiList) ToEntityApiRef ¶
func (e *IdentityTypeApiList) ToEntityApiRef() *EntityApiRef
type IdentityTypeRouter ¶
func NewIdentityTypeRouter ¶
func NewIdentityTypeRouter() *IdentityTypeRouter
func (*IdentityTypeRouter) Detail ¶
func (ir *IdentityTypeRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityTypeRouter) List ¶
func (ir *IdentityTypeRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*IdentityTypeRouter) Register ¶
func (ir *IdentityTypeRouter) Register(ae *env.AppEnv)
type JsonFields ¶
func (JsonFields) AddField ¶ added in v0.9.6
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 LinkBuilder ¶
type ModelCreateF ¶
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) (BaseApiEntity, error)
type ModelUpdateF ¶
type NewSession ¶
type NewSession struct {
*SessionApiList
Token string `json:"token"`
}
type PermissionsApi ¶
type PermissionsApi []string
type QueryOptions ¶ added in v0.12.0
func GetModelQueryOptionsFromRequest ¶
func GetModelQueryOptionsFromRequest(r *http.Request) (*QueryOptions, error)
func (*QueryOptions) String ¶ added in v0.12.0
func (qo *QueryOptions) String() string
func (*QueryOptions) ValidateAndCorrect ¶ added in v0.12.0
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 ¶ added in v0.9.6
type ReadUpdateRouter interface {
ReadOnlyRouter
Update(ae *env.AppEnv, rc *response.RequestContext)
Patch(ae *env.AppEnv, rc *response.RequestContext)
}
type RoleAttributesRouter ¶ added in v0.12.7
type RoleAttributesRouter struct{}
func NewRoleAttributesRouter ¶ added in v0.12.7
func NewRoleAttributesRouter() *RoleAttributesRouter
func (*RoleAttributesRouter) Register ¶ added in v0.12.7
func (ir *RoleAttributesRouter) Register(ae *env.AppEnv)
type RootRouter ¶
type RootRouter struct {
BasePath string
}
func NewRootRouter ¶
func NewRootRouter() *RootRouter
func (*RootRouter) List ¶
func (ir *RootRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*RootRouter) Register ¶
func (ir *RootRouter) Register(ae *env.AppEnv)
type RouteEventContext ¶
type RouteEventContext struct {
AppEnv *env.AppEnv
RequestContext *response.RequestContext
}
type ServiceApiCreate ¶
type ServiceApiCreate struct {
Name *string `json:"name"`
TerminatorStrategy *string `json:"terminatorStrategy"`
Tags map[string]interface{} `json:"tags"`
RoleAttributes []string `json:"roleAttributes"`
Configs []string `json:"configs"`
}
func (*ServiceApiCreate) ToModel ¶
func (i *ServiceApiCreate) ToModel() *model.Service
type ServiceApiList ¶
type ServiceApiList struct {
*env.BaseApi
Name *string `json:"name"`
TerminatorStrategy *string `json:"terminatorStrategy"`
RoleAttributes []string `json:"roleAttributes"`
Permissions []string `json:"permissions"`
Configs []string `json:"configs"`
Config map[string]map[string]interface{} `json:"config"`
}
func MapToServiceApiList ¶
func MapToServiceApiList(_ *env.AppEnv, _ *response.RequestContext, i *model.ServiceDetail) (*ServiceApiList, error)
func (ServiceApiList) BuildSelfLink ¶
func (ServiceApiList) BuildSelfLink(id string) *response.Link
func (*ServiceApiList) GetSelfLink ¶
func (e *ServiceApiList) GetSelfLink() *response.Link
func (*ServiceApiList) PopulateLinks ¶
func (e *ServiceApiList) PopulateLinks()
func (*ServiceApiList) ToEntityApiRef ¶
func (e *ServiceApiList) ToEntityApiRef() *EntityApiRef
type ServiceApiUpdate ¶
type ServiceEdgeRouterPolicyApi ¶
type ServiceEdgeRouterPolicyApi struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
Semantic *string `json:"semantic"`
EdgeRouterRoles []string `json:"edgeRouterRoles"`
ServiceRoles []string `json:"serviceRoles"`
}
func (*ServiceEdgeRouterPolicyApi) ToModel ¶
func (i *ServiceEdgeRouterPolicyApi) ToModel(id string) *model.ServiceEdgeRouterPolicy
type ServiceEdgeRouterPolicyApiList ¶
type ServiceEdgeRouterPolicyApiList struct {
*env.BaseApi
Name string `json:"name"`
Semantic string `json:"semantic"`
EdgeRouterRoles []string `json:"edgeRouterRoles"`
ServiceRoles []string `json:"serviceRoles"`
}
func MapServiceEdgeRouterPolicyToApiList ¶
func MapServiceEdgeRouterPolicyToApiList(i *model.ServiceEdgeRouterPolicy) (*ServiceEdgeRouterPolicyApiList, error)
func (ServiceEdgeRouterPolicyApiList) BuildSelfLink ¶
func (ServiceEdgeRouterPolicyApiList) BuildSelfLink(id string) *response.Link
func (*ServiceEdgeRouterPolicyApiList) GetSelfLink ¶
func (c *ServiceEdgeRouterPolicyApiList) GetSelfLink() *response.Link
func (*ServiceEdgeRouterPolicyApiList) PopulateLinks ¶
func (c *ServiceEdgeRouterPolicyApiList) PopulateLinks()
func (*ServiceEdgeRouterPolicyApiList) ToEntityApiRef ¶
func (c *ServiceEdgeRouterPolicyApiList) ToEntityApiRef() *EntityApiRef
type ServiceEdgeRouterPolicyRouter ¶
func NewServiceEdgeRouterPolicyRouter ¶
func NewServiceEdgeRouterPolicyRouter() *ServiceEdgeRouterPolicyRouter
func (*ServiceEdgeRouterPolicyRouter) Create ¶
func (ir *ServiceEdgeRouterPolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) Delete ¶
func (ir *ServiceEdgeRouterPolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) Detail ¶
func (ir *ServiceEdgeRouterPolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) List ¶
func (ir *ServiceEdgeRouterPolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) ListEdgeRouters ¶
func (ir *ServiceEdgeRouterPolicyRouter) ListEdgeRouters(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) ListServices ¶
func (ir *ServiceEdgeRouterPolicyRouter) ListServices(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) Patch ¶
func (ir *ServiceEdgeRouterPolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceEdgeRouterPolicyRouter) Register ¶
func (ir *ServiceEdgeRouterPolicyRouter) Register(ae *env.AppEnv)
func (*ServiceEdgeRouterPolicyRouter) Update ¶
func (ir *ServiceEdgeRouterPolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type ServicePolicyApi ¶
type ServicePolicyApi struct {
Tags map[string]interface{} `json:"tags"`
Name *string `json:"name"`
PolicyType *string `json:"type"`
Semantic *string `json:"semantic"`
ServiceRoles []string `json:"serviceRoles"`
IdentityRoles []string `json:"identityRoles"`
}
func (*ServicePolicyApi) ToModel ¶
func (i *ServicePolicyApi) ToModel(id string) *model.ServicePolicy
type ServicePolicyApiList ¶
type ServicePolicyApiList struct {
*env.BaseApi
Name string `json:"name"`
PolicyType string `json:"type"`
Semantic string `json:"semantic"`
ServiceRoles []string `json:"serviceRoles"`
IdentityRoles []string `json:"identityRoles"`
}
func MapServicePolicyToApiList ¶
func MapServicePolicyToApiList(i *model.ServicePolicy) (*ServicePolicyApiList, error)
func (ServicePolicyApiList) BuildSelfLink ¶
func (ServicePolicyApiList) BuildSelfLink(id string) *response.Link
func (*ServicePolicyApiList) GetSelfLink ¶
func (c *ServicePolicyApiList) GetSelfLink() *response.Link
func (*ServicePolicyApiList) PopulateLinks ¶
func (c *ServicePolicyApiList) PopulateLinks()
func (*ServicePolicyApiList) ToEntityApiRef ¶
func (c *ServicePolicyApiList) ToEntityApiRef() *EntityApiRef
type ServicePolicyRouter ¶
func NewServicePolicyRouter ¶
func NewServicePolicyRouter() *ServicePolicyRouter
func (*ServicePolicyRouter) Create ¶
func (ir *ServicePolicyRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) Delete ¶
func (ir *ServicePolicyRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) Detail ¶
func (ir *ServicePolicyRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) List ¶
func (ir *ServicePolicyRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) ListIdentities ¶
func (ir *ServicePolicyRouter) ListIdentities(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) ListServices ¶
func (ir *ServicePolicyRouter) ListServices(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) Patch ¶
func (ir *ServicePolicyRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*ServicePolicyRouter) Register ¶
func (ir *ServicePolicyRouter) Register(ae *env.AppEnv)
func (*ServicePolicyRouter) Update ¶
func (ir *ServicePolicyRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type ServiceRouter ¶
func NewServiceRouter ¶
func NewServiceRouter() *ServiceRouter
func (*ServiceRouter) Create ¶
func (ir *ServiceRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceRouter) Delete ¶
func (ir *ServiceRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceRouter) Detail ¶
func (ir *ServiceRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceRouter) List ¶
func (ir *ServiceRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceRouter) Patch ¶
func (ir *ServiceRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*ServiceRouter) Register ¶
func (ir *ServiceRouter) Register(ae *env.AppEnv)
func (*ServiceRouter) Update ¶
func (ir *ServiceRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type SessionApiList ¶
type SessionApiList struct {
*env.BaseApi
Type string `json:"type"`
ApiSession *EntityApiRef `json:"apiSession"`
Service *EntityApiRef `json:"service"`
EdgeRouters []*SessionEdgeRouter `json:"edgeRouters"`
}
func MapSessionToApiList ¶
func (SessionApiList) BuildSelfLink ¶
func (SessionApiList) BuildSelfLink(id string) *response.Link
func (*SessionApiList) GetSelfLink ¶
func (e *SessionApiList) GetSelfLink() *response.Link
func (*SessionApiList) PopulateLinks ¶
func (e *SessionApiList) PopulateLinks()
func (*SessionApiList) ToEntityApiRef ¶
func (e *SessionApiList) ToEntityApiRef() *EntityApiRef
type SessionApiPost ¶
type SessionApiPost struct {
ServiceId *string `json:"serviceId"`
Type *string `json:"type"`
Tags map[string]interface{} `json:"tags"`
}
func (*SessionApiPost) ToModel ¶
func (i *SessionApiPost) ToModel(rc *response.RequestContext) *model.Session
type SessionEdgeRouter ¶
type SessionRequestResponder ¶
type SessionRequestResponder struct {
response.RequestResponder
// contains filtered or unexported fields
}
func (*SessionRequestResponder) RespondWithCreatedId ¶
func (nsr *SessionRequestResponder) RespondWithCreatedId(id string, link *response.Link)
type SessionRouter ¶
func NewSessionRouter ¶
func NewSessionRouter() *SessionRouter
func (*SessionRouter) Create ¶
func (ir *SessionRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*SessionRouter) Delete ¶
func (ir *SessionRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*SessionRouter) Detail ¶
func (ir *SessionRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*SessionRouter) List ¶
func (ir *SessionRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*SessionRouter) Register ¶
func (ir *SessionRouter) Register(ae *env.AppEnv)
type SpecRouter ¶ added in v0.12.20
func NewSpecRouter ¶ added in v0.12.20
func NewSpecRouter() *SpecRouter
func (*SpecRouter) Detail ¶ added in v0.12.20
func (ir *SpecRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*SpecRouter) DetailSpecBody ¶ added in v0.12.20
func (ir *SpecRouter) DetailSpecBody(ae *env.AppEnv, rc *response.RequestContext)
func (*SpecRouter) List ¶ added in v0.12.20
func (ir *SpecRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*SpecRouter) Register ¶ added in v0.12.20
func (ir *SpecRouter) Register(ae *env.AppEnv)
type SummaryRouter ¶
type SummaryRouter struct {
BasePath string
}
func NewSummaryRouter ¶
func NewSummaryRouter() *SummaryRouter
func (*SummaryRouter) List ¶
func (ir *SummaryRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*SummaryRouter) Register ¶
func (ir *SummaryRouter) Register(ae *env.AppEnv)
type TerminatorApi ¶ added in v0.12.0
type TerminatorApi struct {
Service *string `json:"service"`
Router *string `json:"router"`
Binding *string `json:"binding"`
Address *string `json:"address"`
Cost *int `json:"cost"`
Precedence *string `json:"precedence"`
}
func (*TerminatorApi) GetPrecedence ¶ added in v0.13.19
func (i *TerminatorApi) GetPrecedence() *xt.Precedence
func (*TerminatorApi) ToModel ¶ added in v0.12.0
func (i *TerminatorApi) ToModel(id string) *network.Terminator
type TerminatorApiList ¶ added in v0.12.0
type TerminatorApiList struct {
*env.BaseApi
ServiceId string `json:"serviceId"`
Service *EntityApiRef `json:"service"`
RouterId string `json:"routerId"`
Router *EntityApiRef `json:"router"`
Binding string `json:"binding"`
Address string `json:"address"`
Cost uint16 `json:"cost"`
DynamicCost uint16 `json:"dynamicCost"`
Precedence string `json:"precedence"`
}
func MapTerminatorToApiList ¶ added in v0.12.0
func MapTerminatorToApiList(ae *env.AppEnv, i *network.Terminator) (*TerminatorApiList, error)
func (TerminatorApiList) BuildSelfLink ¶ added in v0.12.0
func (TerminatorApiList) BuildSelfLink(id string) *response.Link
func (*TerminatorApiList) GetSelfLink ¶ added in v0.12.0
func (c *TerminatorApiList) GetSelfLink() *response.Link
func (*TerminatorApiList) PopulateLinks ¶ added in v0.12.0
func (c *TerminatorApiList) PopulateLinks()
func (*TerminatorApiList) ToEntityApiRef ¶ added in v0.12.0
func (c *TerminatorApiList) ToEntityApiRef() *EntityApiRef
type TerminatorRouter ¶ added in v0.12.0
func NewTerminatorRouter ¶ added in v0.12.0
func NewTerminatorRouter() *TerminatorRouter
func (*TerminatorRouter) Create ¶ added in v0.12.0
func (ir *TerminatorRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*TerminatorRouter) Delete ¶ added in v0.12.0
func (ir *TerminatorRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*TerminatorRouter) Detail ¶ added in v0.12.0
func (ir *TerminatorRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*TerminatorRouter) List ¶ added in v0.12.0
func (ir *TerminatorRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*TerminatorRouter) Patch ¶ added in v0.12.0
func (ir *TerminatorRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*TerminatorRouter) Register ¶ added in v0.12.0
func (ir *TerminatorRouter) Register(ae *env.AppEnv)
func (*TerminatorRouter) Update ¶ added in v0.12.0
func (ir *TerminatorRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type ToBaseModelConverter ¶
type ToBaseModelConverter interface {
ToBaseModel() migration.BaseDbModel
}
type TransitRouterApi ¶ added in v0.12.25
type TransitRouterApi struct {
Name string `json:"name"`
Tags map[string]interface{} `json:"tags"`
}
func (TransitRouterApi) ToModel ¶ added in v0.12.25
func (i TransitRouterApi) ToModel(id string) *model.TransitRouter
type TransitRouterApiList ¶ added in v0.12.25
type TransitRouterApiList struct {
*env.BaseApi
Name string `json:"name"`
Fingerprint string `json:"fingerprint"`
IsVerified bool `json:"isVerified"`
IsOnline bool `json:"isOnline"`
EnrollmentToken *string `json:"enrollmentToken"`
EnrollmentJwt *string `json:"enrollmentJwt"`
EnrollmentCreatedAt *time.Time `json:"enrollmentCreatedAt"`
EnrollmentExpiresAt *time.Time `json:"enrollmentExpiresAt"`
}
func (TransitRouterApiList) BuildSelfLink ¶ added in v0.12.25
func (e TransitRouterApiList) BuildSelfLink(id string) *response.Link
func (TransitRouterApiList) GetSelfLink ¶ added in v0.12.25
func (e TransitRouterApiList) GetSelfLink() *response.Link
func (TransitRouterApiList) PopulateLinks ¶ added in v0.12.25
func (e TransitRouterApiList) PopulateLinks()
func (TransitRouterApiList) ToEntityApiRef ¶ added in v0.12.25
func (e TransitRouterApiList) ToEntityApiRef() *EntityApiRef
type TransitRouterRouter ¶ added in v0.12.25
func NewTransitRouterRouter ¶ added in v0.12.25
func NewTransitRouterRouter() *TransitRouterRouter
func (*TransitRouterRouter) Create ¶ added in v0.12.25
func (ir *TransitRouterRouter) Create(ae *env.AppEnv, rc *response.RequestContext)
func (*TransitRouterRouter) Delete ¶ added in v0.12.25
func (ir *TransitRouterRouter) Delete(ae *env.AppEnv, rc *response.RequestContext)
func (*TransitRouterRouter) Detail ¶ added in v0.12.25
func (ir *TransitRouterRouter) Detail(ae *env.AppEnv, rc *response.RequestContext)
func (*TransitRouterRouter) List ¶ added in v0.12.25
func (ir *TransitRouterRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*TransitRouterRouter) Patch ¶ added in v0.12.25
func (ir *TransitRouterRouter) Patch(ae *env.AppEnv, rc *response.RequestContext)
func (*TransitRouterRouter) Register ¶ added in v0.12.25
func (ir *TransitRouterRouter) Register(ae *env.AppEnv)
func (*TransitRouterRouter) Update ¶ added in v0.12.25
func (ir *TransitRouterRouter) Update(ae *env.AppEnv, rc *response.RequestContext)
type VersionRouter ¶
type VersionRouter struct {
BasePath string
}
func NewVersionRouter ¶
func NewVersionRouter() *VersionRouter
func (*VersionRouter) List ¶
func (ir *VersionRouter) List(ae *env.AppEnv, rc *response.RequestContext)
func (*VersionRouter) Register ¶
func (ir *VersionRouter) Register(ae *env.AppEnv)
Source Files
¶
- a_routes-packr.go
- api_session_api_model.go
- api_session_router.go
- authenticate_router.go
- authenticator_api_model.go
- authenticator_router.go
- base_router.go
- ca_api_model.go
- ca_router.go
- config_api_model.go
- config_router.go
- config_type_api_model.go
- config_type_router.go
- current_api_session_api_model.go
- current_api_session_router.go
- current_identity_authenticator_api_model.go
- current_identity_authenticator_router.go
- edge_router_api_model.go
- edge_router_policy_api_model.go
- edge_router_policy_router.go
- edge_router_router.go
- enroll_router.go
- enrollment_api_model.go
- enrollment_router.go
- event_log_api_model.go
- event_log_router.go
- geo_region_api_model.go
- geo_region_router.go
- identity_api_model.go
- identity_router.go
- identity_type_api_model.go
- identity_type_router.go
- query_options.go
- role_attributes_router.go
- root_router.go
- routes.go
- service_api_model.go
- service_edge_router_policy_api_model.go
- service_edge_router_policy_router.go
- service_policy_api_model.go
- service_policy_router.go
- service_router.go
- session_api_model.go
- session_router.go
- spec_router.go
- summary_router.go
- terminator_api_model.go
- terminator_router.go
- transit_router_api_model.go
- transit_router_router.go
- version_router.go
Click to show internal directories.
Click to hide internal directories.