Documentation ¶
Index ¶
- Constants
- type Auth
- type AuthAccepted
- func (o *AuthAccepted) SetPayload(payload *v1.Message)
- func (o *AuthAccepted) SetXDispatchOrg(xDispatchOrg string)
- func (o *AuthAccepted) WithPayload(payload *v1.Message) *AuthAccepted
- func (o *AuthAccepted) WithXDispatchOrg(xDispatchOrg string) *AuthAccepted
- func (o *AuthAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AuthDefault
- func (o *AuthDefault) SetPayload(payload *v1.Error)
- func (o *AuthDefault) SetStatusCode(code int)
- func (o *AuthDefault) WithPayload(payload *v1.Error) *AuthDefault
- func (o *AuthDefault) WithStatusCode(code int) *AuthDefault
- func (o *AuthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AuthForbidden
- type AuthHandler
- type AuthHandlerFunc
- type AuthParams
- type AuthURL
- func (o *AuthURL) Build() (*url.URL, error)
- func (o *AuthURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AuthURL) Must(u *url.URL, err error) *url.URL
- func (o *AuthURL) SetBasePath(bp string)
- func (o *AuthURL) String() string
- func (o *AuthURL) StringFull(scheme, host string) string
- func (o *AuthURL) WithBasePath(bp string) *AuthURL
- type AuthUnauthorized
- type GetVersion
- type GetVersionDefault
- func (o *GetVersionDefault) SetPayload(payload *v1.Error)
- func (o *GetVersionDefault) SetStatusCode(code int)
- func (o *GetVersionDefault) WithPayload(payload *v1.Error) *GetVersionDefault
- func (o *GetVersionDefault) WithStatusCode(code int) *GetVersionDefault
- func (o *GetVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetVersionHandler
- type GetVersionHandlerFunc
- type GetVersionOK
- type GetVersionParams
- type GetVersionURL
- func (o *GetVersionURL) Build() (*url.URL, error)
- func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetVersionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetVersionURL) SetBasePath(bp string)
- func (o *GetVersionURL) String() string
- func (o *GetVersionURL) StringFull(scheme, host string) string
- func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
- type Home
- type HomeDefault
- func (o *HomeDefault) SetPayload(payload *v1.Error)
- func (o *HomeDefault) SetStatusCode(code int)
- func (o *HomeDefault) WithPayload(payload *v1.Error) *HomeDefault
- func (o *HomeDefault) WithStatusCode(code int) *HomeDefault
- func (o *HomeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type HomeForbidden
- type HomeHandler
- type HomeHandlerFunc
- type HomeOK
- type HomeParams
- type HomeURL
- func (o *HomeURL) Build() (*url.URL, error)
- func (o *HomeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *HomeURL) Must(u *url.URL, err error) *url.URL
- func (o *HomeURL) SetBasePath(bp string)
- func (o *HomeURL) String() string
- func (o *HomeURL) StringFull(scheme, host string) string
- func (o *HomeURL) WithBasePath(bp string) *HomeURL
- type HomeUnauthorized
- type IdentityManagerAPI
- func (o *IdentityManagerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *IdentityManagerAPI) Authorizer() runtime.Authorizer
- func (o *IdentityManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *IdentityManagerAPI) Context() *middleware.Context
- func (o *IdentityManagerAPI) DefaultConsumes() string
- func (o *IdentityManagerAPI) DefaultProduces() string
- func (o *IdentityManagerAPI) Formats() strfmt.Registry
- func (o *IdentityManagerAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *IdentityManagerAPI) Init()
- func (o *IdentityManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *IdentityManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *IdentityManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *IdentityManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *IdentityManagerAPI) Serve(builder middleware.Builder) http.Handler
- func (o *IdentityManagerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *IdentityManagerAPI) SetDefaultConsumes(mediaType string)
- func (o *IdentityManagerAPI) SetDefaultProduces(mediaType string)
- func (o *IdentityManagerAPI) SetSpec(spec *loads.Document)
- func (o *IdentityManagerAPI) Validate() error
- type Redirect
- type RedirectDefault
- func (o *RedirectDefault) SetPayload(payload *v1.Error)
- func (o *RedirectDefault) SetStatusCode(code int)
- func (o *RedirectDefault) WithPayload(payload *v1.Error) *RedirectDefault
- func (o *RedirectDefault) WithStatusCode(code int) *RedirectDefault
- func (o *RedirectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RedirectFound
- type RedirectHandler
- type RedirectHandlerFunc
- type RedirectParams
- type RedirectURL
- func (o *RedirectURL) Build() (*url.URL, error)
- func (o *RedirectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RedirectURL) Must(u *url.URL, err error) *url.URL
- func (o *RedirectURL) SetBasePath(bp string)
- func (o *RedirectURL) String() string
- func (o *RedirectURL) StringFull(scheme, host string) string
- func (o *RedirectURL) WithBasePath(bp string) *RedirectURL
- type Root
- type RootDefault
- func (o *RootDefault) SetPayload(payload *v1.Error)
- func (o *RootDefault) SetStatusCode(code int)
- func (o *RootDefault) WithPayload(payload *v1.Error) *RootDefault
- func (o *RootDefault) WithStatusCode(code int) *RootDefault
- func (o *RootDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RootForbidden
- type RootHandler
- type RootHandlerFunc
- type RootOK
- type RootParams
- type RootURL
- func (o *RootURL) Build() (*url.URL, error)
- func (o *RootURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RootURL) Must(u *url.URL, err error) *url.URL
- func (o *RootURL) SetBasePath(bp string)
- func (o *RootURL) String() string
- func (o *RootURL) StringFull(scheme, host string) string
- func (o *RootURL) WithBasePath(bp string) *RootURL
- type RootUnauthorized
Constants ¶
const AuthAcceptedCode int = 202
AuthAcceptedCode is the HTTP code returned for type AuthAccepted
const AuthForbiddenCode int = 403
AuthForbiddenCode is the HTTP code returned for type AuthForbidden
AuthUnauthorizedCode is the HTTP code returned for type AuthUnauthorized
const GetVersionOKCode int = 200
GetVersionOKCode is the HTTP code returned for type GetVersionOK
const HomeForbiddenCode int = 403
HomeForbiddenCode is the HTTP code returned for type HomeForbidden
const HomeOKCode int = 200
HomeOKCode is the HTTP code returned for type HomeOK
HomeUnauthorizedCode is the HTTP code returned for type HomeUnauthorized
const RedirectFoundCode int = 302
RedirectFoundCode is the HTTP code returned for type RedirectFound
const RootForbiddenCode int = 403
RootForbiddenCode is the HTTP code returned for type RootForbidden
const RootOKCode int = 200
RootOKCode is the HTTP code returned for type RootOK
RootUnauthorizedCode is the HTTP code returned for type RootUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶ added in v0.1.13
type Auth struct { Context *middleware.Context Handler AuthHandler }
Auth swagger:route GET /v1/iam/auth auth
handles authorization
func NewAuth ¶ added in v0.1.13
func NewAuth(ctx *middleware.Context, handler AuthHandler) *Auth
NewAuth creates a new http.Handler for the auth operation
type AuthAccepted ¶ added in v0.1.13
type AuthAccepted struct { /* */ XDispatchOrg string `json:"X-Dispatch-Org"` /* In: Body */ Payload *v1.Message `json:"body,omitempty"` }
AuthAccepted default response if authorized
swagger:response authAccepted
func NewAuthAccepted ¶ added in v0.1.13
func NewAuthAccepted() *AuthAccepted
NewAuthAccepted creates AuthAccepted with default headers values
func (*AuthAccepted) SetPayload ¶ added in v0.1.13
func (o *AuthAccepted) SetPayload(payload *v1.Message)
SetPayload sets the payload to the auth accepted response
func (*AuthAccepted) SetXDispatchOrg ¶ added in v0.1.16
func (o *AuthAccepted) SetXDispatchOrg(xDispatchOrg string)
SetXDispatchOrg sets the xDispatchOrg to the auth accepted response
func (*AuthAccepted) WithPayload ¶ added in v0.1.13
func (o *AuthAccepted) WithPayload(payload *v1.Message) *AuthAccepted
WithPayload adds the payload to the auth accepted response
func (*AuthAccepted) WithXDispatchOrg ¶ added in v0.1.16
func (o *AuthAccepted) WithXDispatchOrg(xDispatchOrg string) *AuthAccepted
WithXDispatchOrg adds the xDispatchOrg to the auth accepted response
func (*AuthAccepted) WriteResponse ¶ added in v0.1.13
func (o *AuthAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthDefault ¶ added in v0.1.13
type AuthDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AuthDefault error
swagger:response authDefault
func NewAuthDefault ¶ added in v0.1.13
func NewAuthDefault(code int) *AuthDefault
NewAuthDefault creates AuthDefault with default headers values
func (*AuthDefault) SetPayload ¶ added in v0.1.13
func (o *AuthDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the auth default response
func (*AuthDefault) SetStatusCode ¶ added in v0.1.13
func (o *AuthDefault) SetStatusCode(code int)
SetStatusCode sets the status to the auth default response
func (*AuthDefault) WithPayload ¶ added in v0.1.13
func (o *AuthDefault) WithPayload(payload *v1.Error) *AuthDefault
WithPayload adds the payload to the auth default response
func (*AuthDefault) WithStatusCode ¶ added in v0.1.13
func (o *AuthDefault) WithStatusCode(code int) *AuthDefault
WithStatusCode adds the status to the auth default response
func (*AuthDefault) WriteResponse ¶ added in v0.1.13
func (o *AuthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthForbidden ¶ added in v0.1.13
type AuthForbidden struct { }
AuthForbidden Forbidden
swagger:response authForbidden
func NewAuthForbidden ¶ added in v0.1.13
func NewAuthForbidden() *AuthForbidden
NewAuthForbidden creates AuthForbidden with default headers values
func (*AuthForbidden) WriteResponse ¶ added in v0.1.13
func (o *AuthForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthHandler ¶ added in v0.1.13
type AuthHandler interface {
Handle(AuthParams, interface{}) middleware.Responder
}
AuthHandler interface for that can handle valid auth params
type AuthHandlerFunc ¶ added in v0.1.13
type AuthHandlerFunc func(AuthParams, interface{}) middleware.Responder
AuthHandlerFunc turns a function with the right signature into a auth handler
func (AuthHandlerFunc) Handle ¶ added in v0.1.13
func (fn AuthHandlerFunc) Handle(params AuthParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AuthParams ¶ added in v0.1.13
type AuthParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: header */ XDispatchOrg *string }
AuthParams contains all the bound params for the auth operation typically these are obtained from a http.Request
swagger:parameters auth
func NewAuthParams ¶ added in v0.1.13
func NewAuthParams() AuthParams
NewAuthParams creates a new AuthParams object no default values defined in spec.
func (*AuthParams) BindRequest ¶ added in v0.1.13
func (o *AuthParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAuthParams() beforehand.
type AuthURL ¶ added in v0.1.13
type AuthURL struct {
// contains filtered or unexported fields
}
AuthURL generates an URL for the auth operation
func (*AuthURL) BuildFull ¶ added in v0.1.13
BuildFull builds a full url with scheme, host, path and query string
func (*AuthURL) Must ¶ added in v0.1.13
Must is a helper function to panic when the url builder returns an error
func (*AuthURL) SetBasePath ¶ added in v0.1.13
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AuthURL) String ¶ added in v0.1.13
String returns the string representation of the path with query string
func (*AuthURL) StringFull ¶ added in v0.1.13
StringFull returns the string representation of a complete url
func (*AuthURL) WithBasePath ¶ added in v0.1.13
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AuthUnauthorized ¶ added in v0.1.13
type AuthUnauthorized struct { }
AuthUnauthorized Unauthorized
swagger:response authUnauthorized
func NewAuthUnauthorized ¶ added in v0.1.13
func NewAuthUnauthorized() *AuthUnauthorized
NewAuthUnauthorized creates AuthUnauthorized with default headers values
func (*AuthUnauthorized) WriteResponse ¶ added in v0.1.13
func (o *AuthUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersion ¶ added in v0.1.17
type GetVersion struct { Context *middleware.Context Handler GetVersionHandler }
GetVersion swagger:route GET /v1/version getVersion
get version info
func NewGetVersion ¶ added in v0.1.17
func NewGetVersion(ctx *middleware.Context, handler GetVersionHandler) *GetVersion
NewGetVersion creates a new http.Handler for the get version operation
func (*GetVersion) ServeHTTP ¶ added in v0.1.17
func (o *GetVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetVersionDefault ¶ added in v0.1.17
type GetVersionDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetVersionDefault error
swagger:response getVersionDefault
func NewGetVersionDefault ¶ added in v0.1.17
func NewGetVersionDefault(code int) *GetVersionDefault
NewGetVersionDefault creates GetVersionDefault with default headers values
func (*GetVersionDefault) SetPayload ¶ added in v0.1.17
func (o *GetVersionDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get version default response
func (*GetVersionDefault) SetStatusCode ¶ added in v0.1.17
func (o *GetVersionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get version default response
func (*GetVersionDefault) WithPayload ¶ added in v0.1.17
func (o *GetVersionDefault) WithPayload(payload *v1.Error) *GetVersionDefault
WithPayload adds the payload to the get version default response
func (*GetVersionDefault) WithStatusCode ¶ added in v0.1.17
func (o *GetVersionDefault) WithStatusCode(code int) *GetVersionDefault
WithStatusCode adds the status to the get version default response
func (*GetVersionDefault) WriteResponse ¶ added in v0.1.17
func (o *GetVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionHandler ¶ added in v0.1.17
type GetVersionHandler interface {
Handle(GetVersionParams) middleware.Responder
}
GetVersionHandler interface for that can handle valid get version params
type GetVersionHandlerFunc ¶ added in v0.1.17
type GetVersionHandlerFunc func(GetVersionParams) middleware.Responder
GetVersionHandlerFunc turns a function with the right signature into a get version handler
func (GetVersionHandlerFunc) Handle ¶ added in v0.1.17
func (fn GetVersionHandlerFunc) Handle(params GetVersionParams) middleware.Responder
Handle executing the request and returning a response
type GetVersionOK ¶ added in v0.1.17
GetVersionOK version info
swagger:response getVersionOK
func NewGetVersionOK ¶ added in v0.1.17
func NewGetVersionOK() *GetVersionOK
NewGetVersionOK creates GetVersionOK with default headers values
func (*GetVersionOK) SetPayload ¶ added in v0.1.17
func (o *GetVersionOK) SetPayload(payload *v1.Version)
SetPayload sets the payload to the get version o k response
func (*GetVersionOK) WithPayload ¶ added in v0.1.17
func (o *GetVersionOK) WithPayload(payload *v1.Version) *GetVersionOK
WithPayload adds the payload to the get version o k response
func (*GetVersionOK) WriteResponse ¶ added in v0.1.17
func (o *GetVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetVersionParams ¶ added in v0.1.17
GetVersionParams contains all the bound params for the get version operation typically these are obtained from a http.Request
swagger:parameters getVersion
func NewGetVersionParams ¶ added in v0.1.17
func NewGetVersionParams() GetVersionParams
NewGetVersionParams creates a new GetVersionParams object no default values defined in spec.
func (*GetVersionParams) BindRequest ¶ added in v0.1.17
func (o *GetVersionParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetVersionParams() beforehand.
type GetVersionURL ¶ added in v0.1.17
type GetVersionURL struct {
// contains filtered or unexported fields
}
GetVersionURL generates an URL for the get version operation
func (*GetVersionURL) Build ¶ added in v0.1.17
func (o *GetVersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetVersionURL) BuildFull ¶ added in v0.1.17
func (o *GetVersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetVersionURL) Must ¶ added in v0.1.17
Must is a helper function to panic when the url builder returns an error
func (*GetVersionURL) SetBasePath ¶ added in v0.1.17
func (o *GetVersionURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetVersionURL) String ¶ added in v0.1.17
func (o *GetVersionURL) String() string
String returns the string representation of the path with query string
func (*GetVersionURL) StringFull ¶ added in v0.1.17
func (o *GetVersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetVersionURL) WithBasePath ¶ added in v0.1.17
func (o *GetVersionURL) WithBasePath(bp string) *GetVersionURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type Home ¶
type Home struct { Context *middleware.Context Handler HomeHandler }
Home swagger:route GET /home home
a placeholder home page, no authorization policy is required for this
func NewHome ¶
func NewHome(ctx *middleware.Context, handler HomeHandler) *Home
NewHome creates a new http.Handler for the home operation
type HomeDefault ¶
type HomeDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
HomeDefault error
swagger:response homeDefault
func NewHomeDefault ¶
func NewHomeDefault(code int) *HomeDefault
NewHomeDefault creates HomeDefault with default headers values
func (*HomeDefault) SetPayload ¶
func (o *HomeDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the home default response
func (*HomeDefault) SetStatusCode ¶
func (o *HomeDefault) SetStatusCode(code int)
SetStatusCode sets the status to the home default response
func (*HomeDefault) WithPayload ¶
func (o *HomeDefault) WithPayload(payload *v1.Error) *HomeDefault
WithPayload adds the payload to the home default response
func (*HomeDefault) WithStatusCode ¶
func (o *HomeDefault) WithStatusCode(code int) *HomeDefault
WithStatusCode adds the status to the home default response
func (*HomeDefault) WriteResponse ¶
func (o *HomeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HomeForbidden ¶ added in v0.1.18
HomeForbidden access to this resource is forbidden
swagger:response homeForbidden
func NewHomeForbidden ¶ added in v0.1.18
func NewHomeForbidden() *HomeForbidden
NewHomeForbidden creates HomeForbidden with default headers values
func (*HomeForbidden) SetPayload ¶ added in v0.1.18
func (o *HomeForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the home forbidden response
func (*HomeForbidden) WithPayload ¶ added in v0.1.18
func (o *HomeForbidden) WithPayload(payload *v1.Error) *HomeForbidden
WithPayload adds the payload to the home forbidden response
func (*HomeForbidden) WriteResponse ¶ added in v0.1.18
func (o *HomeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HomeHandler ¶
type HomeHandler interface {
Handle(HomeParams, interface{}) middleware.Responder
}
HomeHandler interface for that can handle valid home params
type HomeHandlerFunc ¶
type HomeHandlerFunc func(HomeParams, interface{}) middleware.Responder
HomeHandlerFunc turns a function with the right signature into a home handler
func (HomeHandlerFunc) Handle ¶
func (fn HomeHandlerFunc) Handle(params HomeParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type HomeOK ¶
HomeOK home page
swagger:response homeOK
func (*HomeOK) SetPayload ¶
SetPayload sets the payload to the home o k response
func (*HomeOK) WithPayload ¶
WithPayload adds the payload to the home o k response
func (*HomeOK) WriteResponse ¶
func (o *HomeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HomeParams ¶
type HomeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string }
HomeParams contains all the bound params for the home operation typically these are obtained from a http.Request
swagger:parameters home
func NewHomeParams ¶
func NewHomeParams() HomeParams
NewHomeParams creates a new HomeParams object no default values defined in spec.
func (*HomeParams) BindRequest ¶
func (o *HomeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewHomeParams() beforehand.
type HomeURL ¶
type HomeURL struct {
// contains filtered or unexported fields
}
HomeURL generates an URL for the home operation
func (*HomeURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*HomeURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*HomeURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type HomeUnauthorized ¶ added in v0.1.18
HomeUnauthorized Unauthorized Request
swagger:response homeUnauthorized
func NewHomeUnauthorized ¶ added in v0.1.18
func NewHomeUnauthorized() *HomeUnauthorized
NewHomeUnauthorized creates HomeUnauthorized with default headers values
func (*HomeUnauthorized) SetPayload ¶ added in v0.1.18
func (o *HomeUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the home unauthorized response
func (*HomeUnauthorized) WithPayload ¶ added in v0.1.18
func (o *HomeUnauthorized) WithPayload(payload *v1.Error) *HomeUnauthorized
WithPayload adds the payload to the home unauthorized response
func (*HomeUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *HomeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IdentityManagerAPI ¶
type IdentityManagerAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implemention in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for a "application/json" mime type JSONConsumer runtime.Consumer // JSONProducer registers a producer for a "application/json" mime type JSONProducer runtime.Producer // BearerAuth registers a function that takes a token and returns a principal // it performs authentication based on an api key Authorization provided in the header BearerAuth func(string) (interface{}, error) // CookieAuth registers a function that takes a token and returns a principal // it performs authentication based on an api key Cookie provided in the header CookieAuth func(string) (interface{}, error) // APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal APIAuthorizer runtime.Authorizer // OrganizationAddOrganizationHandler sets the operation handler for the add organization operation OrganizationAddOrganizationHandler organization.AddOrganizationHandler // PolicyAddPolicyHandler sets the operation handler for the add policy operation PolicyAddPolicyHandler policy.AddPolicyHandler // ServiceaccountAddServiceAccountHandler sets the operation handler for the add service account operation ServiceaccountAddServiceAccountHandler serviceaccount.AddServiceAccountHandler // AuthHandler sets the operation handler for the auth operation AuthHandler AuthHandler // OrganizationDeleteOrganizationHandler sets the operation handler for the delete organization operation OrganizationDeleteOrganizationHandler organization.DeleteOrganizationHandler // PolicyDeletePolicyHandler sets the operation handler for the delete policy operation PolicyDeletePolicyHandler policy.DeletePolicyHandler // ServiceaccountDeleteServiceAccountHandler sets the operation handler for the delete service account operation ServiceaccountDeleteServiceAccountHandler serviceaccount.DeleteServiceAccountHandler // OrganizationGetOrganizationHandler sets the operation handler for the get organization operation OrganizationGetOrganizationHandler organization.GetOrganizationHandler // OrganizationGetOrganizationsHandler sets the operation handler for the get organizations operation OrganizationGetOrganizationsHandler organization.GetOrganizationsHandler // PolicyGetPoliciesHandler sets the operation handler for the get policies operation PolicyGetPoliciesHandler policy.GetPoliciesHandler // PolicyGetPolicyHandler sets the operation handler for the get policy operation PolicyGetPolicyHandler policy.GetPolicyHandler // ServiceaccountGetServiceAccountHandler sets the operation handler for the get service account operation ServiceaccountGetServiceAccountHandler serviceaccount.GetServiceAccountHandler // ServiceaccountGetServiceAccountsHandler sets the operation handler for the get service accounts operation ServiceaccountGetServiceAccountsHandler serviceaccount.GetServiceAccountsHandler // GetVersionHandler sets the operation handler for the get version operation GetVersionHandler GetVersionHandler // HomeHandler sets the operation handler for the home operation HomeHandler HomeHandler // RedirectHandler sets the operation handler for the redirect operation RedirectHandler RedirectHandler // RootHandler sets the operation handler for the root operation RootHandler RootHandler // OrganizationUpdateOrganizationHandler sets the operation handler for the update organization operation OrganizationUpdateOrganizationHandler organization.UpdateOrganizationHandler // PolicyUpdatePolicyHandler sets the operation handler for the update policy operation PolicyUpdatePolicyHandler policy.UpdatePolicyHandler // ServiceaccountUpdateServiceAccountHandler sets the operation handler for the update service account operation ServiceaccountUpdateServiceAccountHandler serviceaccount.UpdateServiceAccountHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
IdentityManagerAPI VMware Dispatch Identity Manager
func NewIdentityManagerAPI ¶
func NewIdentityManagerAPI(spec *loads.Document) *IdentityManagerAPI
NewIdentityManagerAPI creates a new IdentityManager instance
func (*IdentityManagerAPI) AuthenticatorsFor ¶
func (o *IdentityManagerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*IdentityManagerAPI) Authorizer ¶
func (o *IdentityManagerAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*IdentityManagerAPI) ConsumersFor ¶
func (o *IdentityManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types
func (*IdentityManagerAPI) Context ¶
func (o *IdentityManagerAPI) Context() *middleware.Context
Context returns the middleware context for the identity manager API
func (*IdentityManagerAPI) DefaultConsumes ¶
func (o *IdentityManagerAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*IdentityManagerAPI) DefaultProduces ¶
func (o *IdentityManagerAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*IdentityManagerAPI) Formats ¶
func (o *IdentityManagerAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*IdentityManagerAPI) HandlerFor ¶
func (o *IdentityManagerAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*IdentityManagerAPI) Init ¶
func (o *IdentityManagerAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*IdentityManagerAPI) ProducersFor ¶
func (o *IdentityManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types
func (*IdentityManagerAPI) RegisterConsumer ¶ added in v0.1.13
func (o *IdentityManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*IdentityManagerAPI) RegisterFormat ¶
func (o *IdentityManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*IdentityManagerAPI) RegisterProducer ¶ added in v0.1.13
func (o *IdentityManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*IdentityManagerAPI) Serve ¶
func (o *IdentityManagerAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*IdentityManagerAPI) ServeErrorFor ¶
func (o *IdentityManagerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*IdentityManagerAPI) SetDefaultConsumes ¶
func (o *IdentityManagerAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*IdentityManagerAPI) SetDefaultProduces ¶
func (o *IdentityManagerAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*IdentityManagerAPI) SetSpec ¶
func (o *IdentityManagerAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*IdentityManagerAPI) Validate ¶
func (o *IdentityManagerAPI) Validate() error
Validate validates the registrations in the IdentityManagerAPI
type Redirect ¶
type Redirect struct { Context *middleware.Context Handler RedirectHandler }
Redirect swagger:route GET /v1/iam/redirect redirect
redirect to localhost for vs-cli login (testing)
func NewRedirect ¶
func NewRedirect(ctx *middleware.Context, handler RedirectHandler) *Redirect
NewRedirect creates a new http.Handler for the redirect operation
type RedirectDefault ¶
type RedirectDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RedirectDefault error
swagger:response redirectDefault
func NewRedirectDefault ¶
func NewRedirectDefault(code int) *RedirectDefault
NewRedirectDefault creates RedirectDefault with default headers values
func (*RedirectDefault) SetPayload ¶
func (o *RedirectDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the redirect default response
func (*RedirectDefault) SetStatusCode ¶
func (o *RedirectDefault) SetStatusCode(code int)
SetStatusCode sets the status to the redirect default response
func (*RedirectDefault) WithPayload ¶
func (o *RedirectDefault) WithPayload(payload *v1.Error) *RedirectDefault
WithPayload adds the payload to the redirect default response
func (*RedirectDefault) WithStatusCode ¶
func (o *RedirectDefault) WithStatusCode(code int) *RedirectDefault
WithStatusCode adds the status to the redirect default response
func (*RedirectDefault) WriteResponse ¶
func (o *RedirectDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RedirectFound ¶
type RedirectFound struct { /*redirect location */ Location string `json:"Location"` }
RedirectFound redirect
swagger:response redirectFound
func NewRedirectFound ¶
func NewRedirectFound() *RedirectFound
NewRedirectFound creates RedirectFound with default headers values
func (*RedirectFound) SetLocation ¶
func (o *RedirectFound) SetLocation(location string)
SetLocation sets the location to the redirect found response
func (*RedirectFound) WithLocation ¶
func (o *RedirectFound) WithLocation(location string) *RedirectFound
WithLocation adds the location to the redirect found response
func (*RedirectFound) WriteResponse ¶
func (o *RedirectFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RedirectHandler ¶
type RedirectHandler interface {
Handle(RedirectParams, interface{}) middleware.Responder
}
RedirectHandler interface for that can handle valid redirect params
type RedirectHandlerFunc ¶
type RedirectHandlerFunc func(RedirectParams, interface{}) middleware.Responder
RedirectHandlerFunc turns a function with the right signature into a redirect handler
func (RedirectHandlerFunc) Handle ¶
func (fn RedirectHandlerFunc) Handle(params RedirectParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type RedirectParams ¶
type RedirectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*the local server url redirecting to In: query */ Redirect *string }
RedirectParams contains all the bound params for the redirect operation typically these are obtained from a http.Request
swagger:parameters redirect
func NewRedirectParams ¶
func NewRedirectParams() RedirectParams
NewRedirectParams creates a new RedirectParams object no default values defined in spec.
func (*RedirectParams) BindRequest ¶
func (o *RedirectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRedirectParams() beforehand.
type RedirectURL ¶
type RedirectURL struct { Redirect *string // contains filtered or unexported fields }
RedirectURL generates an URL for the redirect operation
func (*RedirectURL) Build ¶
func (o *RedirectURL) Build() (*url.URL, error)
Build a url path and query string
func (*RedirectURL) BuildFull ¶
func (o *RedirectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RedirectURL) SetBasePath ¶
func (o *RedirectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RedirectURL) String ¶
func (o *RedirectURL) String() string
String returns the string representation of the path with query string
func (*RedirectURL) StringFull ¶
func (o *RedirectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RedirectURL) WithBasePath ¶
func (o *RedirectURL) WithBasePath(bp string) *RedirectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type Root ¶
type Root struct { Context *middleware.Context Handler RootHandler }
Root swagger:route GET / root
a placeholder root page, no authentication is required for this
func NewRoot ¶
func NewRoot(ctx *middleware.Context, handler RootHandler) *Root
NewRoot creates a new http.Handler for the root operation
type RootDefault ¶
type RootDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RootDefault error
swagger:response rootDefault
func NewRootDefault ¶
func NewRootDefault(code int) *RootDefault
NewRootDefault creates RootDefault with default headers values
func (*RootDefault) SetPayload ¶
func (o *RootDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the root default response
func (*RootDefault) SetStatusCode ¶
func (o *RootDefault) SetStatusCode(code int)
SetStatusCode sets the status to the root default response
func (*RootDefault) WithPayload ¶
func (o *RootDefault) WithPayload(payload *v1.Error) *RootDefault
WithPayload adds the payload to the root default response
func (*RootDefault) WithStatusCode ¶
func (o *RootDefault) WithStatusCode(code int) *RootDefault
WithStatusCode adds the status to the root default response
func (*RootDefault) WriteResponse ¶
func (o *RootDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RootForbidden ¶ added in v0.1.18
RootForbidden access to this resource is forbidden
swagger:response rootForbidden
func NewRootForbidden ¶ added in v0.1.18
func NewRootForbidden() *RootForbidden
NewRootForbidden creates RootForbidden with default headers values
func (*RootForbidden) SetPayload ¶ added in v0.1.18
func (o *RootForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the root forbidden response
func (*RootForbidden) WithPayload ¶ added in v0.1.18
func (o *RootForbidden) WithPayload(payload *v1.Error) *RootForbidden
WithPayload adds the payload to the root forbidden response
func (*RootForbidden) WriteResponse ¶ added in v0.1.18
func (o *RootForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RootHandler ¶
type RootHandler interface {
Handle(RootParams) middleware.Responder
}
RootHandler interface for that can handle valid root params
type RootHandlerFunc ¶
type RootHandlerFunc func(RootParams) middleware.Responder
RootHandlerFunc turns a function with the right signature into a root handler
func (RootHandlerFunc) Handle ¶
func (fn RootHandlerFunc) Handle(params RootParams) middleware.Responder
Handle executing the request and returning a response
type RootOK ¶
RootOK home page
swagger:response rootOK
func (*RootOK) SetPayload ¶
SetPayload sets the payload to the root o k response
func (*RootOK) WithPayload ¶
WithPayload adds the payload to the root o k response
func (*RootOK) WriteResponse ¶
func (o *RootOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RootParams ¶
RootParams contains all the bound params for the root operation typically these are obtained from a http.Request
swagger:parameters root
func NewRootParams ¶
func NewRootParams() RootParams
NewRootParams creates a new RootParams object no default values defined in spec.
func (*RootParams) BindRequest ¶
func (o *RootParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRootParams() beforehand.
type RootURL ¶
type RootURL struct {
// contains filtered or unexported fields
}
RootURL generates an URL for the root operation
func (*RootURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RootURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*RootURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RootUnauthorized ¶ added in v0.1.18
RootUnauthorized Unauthorized Request
swagger:response rootUnauthorized
func NewRootUnauthorized ¶ added in v0.1.18
func NewRootUnauthorized() *RootUnauthorized
NewRootUnauthorized creates RootUnauthorized with default headers values
func (*RootUnauthorized) SetPayload ¶ added in v0.1.18
func (o *RootUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the root unauthorized response
func (*RootUnauthorized) WithPayload ¶ added in v0.1.18
func (o *RootUnauthorized) WithPayload(payload *v1.Error) *RootUnauthorized
WithPayload adds the payload to the root unauthorized response
func (*RootUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *RootUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- auth.go
- auth_parameters.go
- auth_responses.go
- auth_urlbuilder.go
- get_version.go
- get_version_parameters.go
- get_version_responses.go
- get_version_urlbuilder.go
- home.go
- home_parameters.go
- home_responses.go
- home_urlbuilder.go
- identity_manager_api.go
- redirect.go
- redirect_parameters.go
- redirect_responses.go
- redirect_urlbuilder.go
- root.go
- root_parameters.go
- root_responses.go
- root_urlbuilder.go