operations

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AuthAcceptedCode int = 202

AuthAcceptedCode is the HTTP code returned for type AuthAccepted

View Source
const AuthForbiddenCode int = 403

AuthForbiddenCode is the HTTP code returned for type AuthForbidden

View Source
const AuthUnauthorizedCode int = 401

AuthUnauthorizedCode is the HTTP code returned for type AuthUnauthorized

View Source
const GetVersionOKCode int = 200

GetVersionOKCode is the HTTP code returned for type GetVersionOK

View Source
const HomeForbiddenCode int = 403

HomeForbiddenCode is the HTTP code returned for type HomeForbidden

View Source
const HomeOKCode int = 200

HomeOKCode is the HTTP code returned for type HomeOK

View Source
const HomeUnauthorizedCode int = 401

HomeUnauthorizedCode is the HTTP code returned for type HomeUnauthorized

View Source
const RedirectFoundCode int = 302

RedirectFoundCode is the HTTP code returned for type RedirectFound

View Source
const RootForbiddenCode int = 403

RootForbiddenCode is the HTTP code returned for type RootForbidden

View Source
const RootOKCode int = 200

RootOKCode is the HTTP code returned for type RootOK

View Source
const RootUnauthorizedCode int = 401

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

func (*Auth) ServeHTTP added in v0.1.13

func (o *Auth) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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) Build added in v0.1.13

func (o *AuthURL) Build() (*url.URL, error)

Build a url path and query string

func (*AuthURL) BuildFull added in v0.1.13

func (o *AuthURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AuthURL) Must added in v0.1.13

func (o *AuthURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AuthURL) SetBasePath added in v0.1.13

func (o *AuthURL) 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 (*AuthURL) String added in v0.1.13

func (o *AuthURL) String() string

String returns the string representation of the path with query string

func (*AuthURL) StringFull added in v0.1.13

func (o *AuthURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AuthURL) WithBasePath added in v0.1.13

func (o *AuthURL) WithBasePath(bp string) *AuthURL

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

Handle executing the request and returning a response

type GetVersionOK added in v0.1.17

type GetVersionOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Version `json:"body,omitempty"`
}

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

type GetVersionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *GetVersionURL) Must(u *url.URL, err error) *url.URL

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

func (*Home) ServeHTTP

func (o *Home) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

type HomeForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

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

type HomeOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Message `json:"body,omitempty"`
}

HomeOK home page

swagger:response homeOK

func NewHomeOK

func NewHomeOK() *HomeOK

NewHomeOK creates HomeOK with default headers values

func (*HomeOK) SetPayload

func (o *HomeOK) SetPayload(payload *v1.Message)

SetPayload sets the payload to the home o k response

func (*HomeOK) WithPayload

func (o *HomeOK) WithPayload(payload *v1.Message) *HomeOK

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

func (o *HomeURL) Build() (*url.URL, error)

Build a url path and query string

func (*HomeURL) BuildFull

func (o *HomeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*HomeURL) Must

func (o *HomeURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*HomeURL) SetBasePath

func (o *HomeURL) 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 (*HomeURL) String

func (o *HomeURL) String() string

String returns the string representation of the path with query string

func (*HomeURL) StringFull

func (o *HomeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*HomeURL) WithBasePath

func (o *HomeURL) WithBasePath(bp string) *HomeURL

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

type HomeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

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

func (*Redirect) ServeHTTP

func (o *Redirect) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

func (o *RedirectURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

func (*Root) ServeHTTP

func (o *Root) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

type RootForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

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

type RootOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Message `json:"body,omitempty"`
}

RootOK home page

swagger:response rootOK

func NewRootOK

func NewRootOK() *RootOK

NewRootOK creates RootOK with default headers values

func (*RootOK) SetPayload

func (o *RootOK) SetPayload(payload *v1.Message)

SetPayload sets the payload to the root o k response

func (*RootOK) WithPayload

func (o *RootOK) WithPayload(payload *v1.Message) *RootOK

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

type RootParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *RootURL) Build() (*url.URL, error)

Build a url path and query string

func (*RootURL) BuildFull

func (o *RootURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RootURL) Must

func (o *RootURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*RootURL) SetBasePath

func (o *RootURL) 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 (*RootURL) String

func (o *RootURL) String() string

String returns the string representation of the path with query string

func (*RootURL) StringFull

func (o *RootURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RootURL) WithBasePath

func (o *RootURL) WithBasePath(bp string) *RootURL

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

type RootUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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