policy

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddPolicyBadRequestCode int = 400

AddPolicyBadRequestCode is the HTTP code returned for type AddPolicyBadRequest

View Source
const AddPolicyConflictCode int = 409

AddPolicyConflictCode is the HTTP code returned for type AddPolicyConflict

View Source
const AddPolicyCreatedCode int = 201

AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated

View Source
const AddPolicyInternalServerErrorCode int = 500

AddPolicyInternalServerErrorCode is the HTTP code returned for type AddPolicyInternalServerError

View Source
const DeletePolicyBadRequestCode int = 400

DeletePolicyBadRequestCode is the HTTP code returned for type DeletePolicyBadRequest

View Source
const DeletePolicyInternalServerErrorCode int = 500

DeletePolicyInternalServerErrorCode is the HTTP code returned for type DeletePolicyInternalServerError

View Source
const DeletePolicyNotFoundCode int = 404

DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound

View Source
const DeletePolicyOKCode int = 200

DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK

View Source
const GetPoliciesInternalServerErrorCode int = 500

GetPoliciesInternalServerErrorCode is the HTTP code returned for type GetPoliciesInternalServerError

View Source
const GetPoliciesOKCode int = 200

GetPoliciesOKCode is the HTTP code returned for type GetPoliciesOK

View Source
const GetPolicyBadRequestCode int = 400

GetPolicyBadRequestCode is the HTTP code returned for type GetPolicyBadRequest

View Source
const GetPolicyInternalServerErrorCode int = 500

GetPolicyInternalServerErrorCode is the HTTP code returned for type GetPolicyInternalServerError

View Source
const GetPolicyNotFoundCode int = 404

GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound

View Source
const GetPolicyOKCode int = 200

GetPolicyOKCode is the HTTP code returned for type GetPolicyOK

View Source
const UpdatePolicyBadRequestCode int = 400

UpdatePolicyBadRequestCode is the HTTP code returned for type UpdatePolicyBadRequest

View Source
const UpdatePolicyInternalServerErrorCode int = 500

UpdatePolicyInternalServerErrorCode is the HTTP code returned for type UpdatePolicyInternalServerError

View Source
const UpdatePolicyNotFoundCode int = 404

UpdatePolicyNotFoundCode is the HTTP code returned for type UpdatePolicyNotFound

View Source
const UpdatePolicyOKCode int = 200

UpdatePolicyOKCode is the HTTP code returned for type UpdatePolicyOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicy

type AddPolicy struct {
	Context *middleware.Context
	Handler AddPolicyHandler
}

AddPolicy swagger:route POST /v1/iam/policy policy addPolicy

Add a new policy

func NewAddPolicy

func NewAddPolicy(ctx *middleware.Context, handler AddPolicyHandler) *AddPolicy

NewAddPolicy creates a new http.Handler for the add policy operation

func (*AddPolicy) ServeHTTP

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

type AddPolicyBadRequest

type AddPolicyBadRequest struct {

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

AddPolicyBadRequest Invalid input

swagger:response addPolicyBadRequest

func NewAddPolicyBadRequest

func NewAddPolicyBadRequest() *AddPolicyBadRequest

NewAddPolicyBadRequest creates AddPolicyBadRequest with default headers values

func (*AddPolicyBadRequest) SetPayload

func (o *AddPolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy bad request response

func (*AddPolicyBadRequest) WithPayload

func (o *AddPolicyBadRequest) WithPayload(payload *v1.Error) *AddPolicyBadRequest

WithPayload adds the payload to the add policy bad request response

func (*AddPolicyBadRequest) WriteResponse

func (o *AddPolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyConflict

type AddPolicyConflict struct {

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

AddPolicyConflict Already Exists

swagger:response addPolicyConflict

func NewAddPolicyConflict

func NewAddPolicyConflict() *AddPolicyConflict

NewAddPolicyConflict creates AddPolicyConflict with default headers values

func (*AddPolicyConflict) SetPayload

func (o *AddPolicyConflict) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy conflict response

func (*AddPolicyConflict) WithPayload

func (o *AddPolicyConflict) WithPayload(payload *v1.Error) *AddPolicyConflict

WithPayload adds the payload to the add policy conflict response

func (*AddPolicyConflict) WriteResponse

func (o *AddPolicyConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyCreated

type AddPolicyCreated struct {

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

AddPolicyCreated created

swagger:response addPolicyCreated

func NewAddPolicyCreated

func NewAddPolicyCreated() *AddPolicyCreated

NewAddPolicyCreated creates AddPolicyCreated with default headers values

func (*AddPolicyCreated) SetPayload

func (o *AddPolicyCreated) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the add policy created response

func (*AddPolicyCreated) WithPayload

func (o *AddPolicyCreated) WithPayload(payload *v1.Policy) *AddPolicyCreated

WithPayload adds the payload to the add policy created response

func (*AddPolicyCreated) WriteResponse

func (o *AddPolicyCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyDefault

type AddPolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddPolicyDefault Generic error response

swagger:response addPolicyDefault

func NewAddPolicyDefault

func NewAddPolicyDefault(code int) *AddPolicyDefault

NewAddPolicyDefault creates AddPolicyDefault with default headers values

func (*AddPolicyDefault) SetPayload

func (o *AddPolicyDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy default response

func (*AddPolicyDefault) SetStatusCode

func (o *AddPolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add policy default response

func (*AddPolicyDefault) WithPayload

func (o *AddPolicyDefault) WithPayload(payload *v1.Error) *AddPolicyDefault

WithPayload adds the payload to the add policy default response

func (*AddPolicyDefault) WithStatusCode

func (o *AddPolicyDefault) WithStatusCode(code int) *AddPolicyDefault

WithStatusCode adds the status to the add policy default response

func (*AddPolicyDefault) WriteResponse

func (o *AddPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyHandler

type AddPolicyHandler interface {
	Handle(AddPolicyParams, interface{}) middleware.Responder
}

AddPolicyHandler interface for that can handle valid add policy params

type AddPolicyHandlerFunc

type AddPolicyHandlerFunc func(AddPolicyParams, interface{}) middleware.Responder

AddPolicyHandlerFunc turns a function with the right signature into a add policy handler

func (AddPolicyHandlerFunc) Handle

func (fn AddPolicyHandlerFunc) Handle(params AddPolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddPolicyInternalServerError

type AddPolicyInternalServerError struct {

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

AddPolicyInternalServerError Internal Error

swagger:response addPolicyInternalServerError

func NewAddPolicyInternalServerError

func NewAddPolicyInternalServerError() *AddPolicyInternalServerError

NewAddPolicyInternalServerError creates AddPolicyInternalServerError with default headers values

func (*AddPolicyInternalServerError) SetPayload

func (o *AddPolicyInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy internal server error response

func (*AddPolicyInternalServerError) WithPayload

WithPayload adds the payload to the add policy internal server error response

func (*AddPolicyInternalServerError) WriteResponse

func (o *AddPolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPolicyParams

type AddPolicyParams struct {

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

	/*Policy Object
	  Required: true
	  In: body
	*/
	Body *v1.Policy
}

AddPolicyParams contains all the bound params for the add policy operation typically these are obtained from a http.Request

swagger:parameters addPolicy

func NewAddPolicyParams

func NewAddPolicyParams() AddPolicyParams

NewAddPolicyParams creates a new AddPolicyParams object no default values defined in spec.

func (*AddPolicyParams) BindRequest

func (o *AddPolicyParams) 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 NewAddPolicyParams() beforehand.

type AddPolicyURL

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

AddPolicyURL generates an URL for the add policy operation

func (*AddPolicyURL) Build

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

Build a url path and query string

func (*AddPolicyURL) BuildFull

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

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

func (*AddPolicyURL) Must

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

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

func (*AddPolicyURL) SetBasePath

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

func (o *AddPolicyURL) String() string

String returns the string representation of the path with query string

func (*AddPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddPolicyURL) WithBasePath

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

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 DeletePolicy

type DeletePolicy struct {
	Context *middleware.Context
	Handler DeletePolicyHandler
}

DeletePolicy swagger:route DELETE /v1/iam/policy/{policyName} policy deletePolicy

Deletes an Policy

func NewDeletePolicy

func NewDeletePolicy(ctx *middleware.Context, handler DeletePolicyHandler) *DeletePolicy

NewDeletePolicy creates a new http.Handler for the delete policy operation

func (*DeletePolicy) ServeHTTP

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

type DeletePolicyBadRequest

type DeletePolicyBadRequest struct {

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

DeletePolicyBadRequest Invalid Name supplied

swagger:response deletePolicyBadRequest

func NewDeletePolicyBadRequest

func NewDeletePolicyBadRequest() *DeletePolicyBadRequest

NewDeletePolicyBadRequest creates DeletePolicyBadRequest with default headers values

func (*DeletePolicyBadRequest) SetPayload

func (o *DeletePolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) WithPayload

func (o *DeletePolicyBadRequest) WithPayload(payload *v1.Error) *DeletePolicyBadRequest

WithPayload adds the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) WriteResponse

func (o *DeletePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyHandler

type DeletePolicyHandler interface {
	Handle(DeletePolicyParams, interface{}) middleware.Responder
}

DeletePolicyHandler interface for that can handle valid delete policy params

type DeletePolicyHandlerFunc

type DeletePolicyHandlerFunc func(DeletePolicyParams, interface{}) middleware.Responder

DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler

func (DeletePolicyHandlerFunc) Handle

func (fn DeletePolicyHandlerFunc) Handle(params DeletePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeletePolicyInternalServerError

type DeletePolicyInternalServerError struct {

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

DeletePolicyInternalServerError Internal error

swagger:response deletePolicyInternalServerError

func NewDeletePolicyInternalServerError

func NewDeletePolicyInternalServerError() *DeletePolicyInternalServerError

NewDeletePolicyInternalServerError creates DeletePolicyInternalServerError with default headers values

func (*DeletePolicyInternalServerError) SetPayload

func (o *DeletePolicyInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy internal server error response

func (*DeletePolicyInternalServerError) WithPayload

WithPayload adds the payload to the delete policy internal server error response

func (*DeletePolicyInternalServerError) WriteResponse

func (o *DeletePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyNotFound

type DeletePolicyNotFound struct {

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

DeletePolicyNotFound Policy not found

swagger:response deletePolicyNotFound

func NewDeletePolicyNotFound

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) SetPayload

func (o *DeletePolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy not found response

func (*DeletePolicyNotFound) WithPayload

func (o *DeletePolicyNotFound) WithPayload(payload *v1.Error) *DeletePolicyNotFound

WithPayload adds the payload to the delete policy not found response

func (*DeletePolicyNotFound) WriteResponse

func (o *DeletePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyOK

type DeletePolicyOK struct {

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

DeletePolicyOK Successful operation

swagger:response deletePolicyOK

func NewDeletePolicyOK

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates DeletePolicyOK with default headers values

func (*DeletePolicyOK) SetPayload

func (o *DeletePolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the delete policy o k response

func (*DeletePolicyOK) WithPayload

func (o *DeletePolicyOK) WithPayload(payload *v1.Policy) *DeletePolicyOK

WithPayload adds the payload to the delete policy o k response

func (*DeletePolicyOK) WriteResponse

func (o *DeletePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyParams

type DeletePolicyParams struct {

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

	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

DeletePolicyParams contains all the bound params for the delete policy operation typically these are obtained from a http.Request

swagger:parameters deletePolicy

func NewDeletePolicyParams

func NewDeletePolicyParams() DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams object no default values defined in spec.

func (*DeletePolicyParams) BindRequest

func (o *DeletePolicyParams) 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 NewDeletePolicyParams() beforehand.

type DeletePolicyURL

type DeletePolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

DeletePolicyURL generates an URL for the delete policy operation

func (*DeletePolicyURL) Build

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

Build a url path and query string

func (*DeletePolicyURL) BuildFull

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

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

func (*DeletePolicyURL) Must

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

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

func (*DeletePolicyURL) SetBasePath

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

func (o *DeletePolicyURL) String() string

String returns the string representation of the path with query string

func (*DeletePolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeletePolicyURL) WithBasePath

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

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 GetPolicies

type GetPolicies struct {
	Context *middleware.Context
	Handler GetPoliciesHandler
}

GetPolicies swagger:route GET /v1/iam/policy policy getPolicies

List all existing policies

func NewGetPolicies

func NewGetPolicies(ctx *middleware.Context, handler GetPoliciesHandler) *GetPolicies

NewGetPolicies creates a new http.Handler for the get policies operation

func (*GetPolicies) ServeHTTP

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

type GetPoliciesDefault

type GetPoliciesDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetPoliciesDefault Unexpected Error

swagger:response getPoliciesDefault

func NewGetPoliciesDefault

func NewGetPoliciesDefault(code int) *GetPoliciesDefault

NewGetPoliciesDefault creates GetPoliciesDefault with default headers values

func (*GetPoliciesDefault) SetPayload

func (o *GetPoliciesDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policies default response

func (*GetPoliciesDefault) SetStatusCode

func (o *GetPoliciesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get policies default response

func (*GetPoliciesDefault) WithPayload

func (o *GetPoliciesDefault) WithPayload(payload *v1.Error) *GetPoliciesDefault

WithPayload adds the payload to the get policies default response

func (*GetPoliciesDefault) WithStatusCode

func (o *GetPoliciesDefault) WithStatusCode(code int) *GetPoliciesDefault

WithStatusCode adds the status to the get policies default response

func (*GetPoliciesDefault) WriteResponse

func (o *GetPoliciesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPoliciesHandler

type GetPoliciesHandler interface {
	Handle(GetPoliciesParams, interface{}) middleware.Responder
}

GetPoliciesHandler interface for that can handle valid get policies params

type GetPoliciesHandlerFunc

type GetPoliciesHandlerFunc func(GetPoliciesParams, interface{}) middleware.Responder

GetPoliciesHandlerFunc turns a function with the right signature into a get policies handler

func (GetPoliciesHandlerFunc) Handle

func (fn GetPoliciesHandlerFunc) Handle(params GetPoliciesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPoliciesInternalServerError

type GetPoliciesInternalServerError struct {

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

GetPoliciesInternalServerError Internal Error

swagger:response getPoliciesInternalServerError

func NewGetPoliciesInternalServerError

func NewGetPoliciesInternalServerError() *GetPoliciesInternalServerError

NewGetPoliciesInternalServerError creates GetPoliciesInternalServerError with default headers values

func (*GetPoliciesInternalServerError) SetPayload

func (o *GetPoliciesInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policies internal server error response

func (*GetPoliciesInternalServerError) WithPayload

WithPayload adds the payload to the get policies internal server error response

func (*GetPoliciesInternalServerError) WriteResponse

func (o *GetPoliciesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPoliciesOK

type GetPoliciesOK struct {

	/*
	  In: Body
	*/
	Payload []*v1.Policy `json:"body,omitempty"`
}

GetPoliciesOK Successful operation

swagger:response getPoliciesOK

func NewGetPoliciesOK

func NewGetPoliciesOK() *GetPoliciesOK

NewGetPoliciesOK creates GetPoliciesOK with default headers values

func (*GetPoliciesOK) SetPayload

func (o *GetPoliciesOK) SetPayload(payload []*v1.Policy)

SetPayload sets the payload to the get policies o k response

func (*GetPoliciesOK) WithPayload

func (o *GetPoliciesOK) WithPayload(payload []*v1.Policy) *GetPoliciesOK

WithPayload adds the payload to the get policies o k response

func (*GetPoliciesOK) WriteResponse

func (o *GetPoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPoliciesParams

type GetPoliciesParams struct {

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

GetPoliciesParams contains all the bound params for the get policies operation typically these are obtained from a http.Request

swagger:parameters getPolicies

func NewGetPoliciesParams

func NewGetPoliciesParams() GetPoliciesParams

NewGetPoliciesParams creates a new GetPoliciesParams object no default values defined in spec.

func (*GetPoliciesParams) BindRequest

func (o *GetPoliciesParams) 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 NewGetPoliciesParams() beforehand.

type GetPoliciesURL

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

GetPoliciesURL generates an URL for the get policies operation

func (*GetPoliciesURL) Build

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

Build a url path and query string

func (*GetPoliciesURL) BuildFull

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

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

func (*GetPoliciesURL) Must

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

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

func (*GetPoliciesURL) SetBasePath

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

func (o *GetPoliciesURL) String() string

String returns the string representation of the path with query string

func (*GetPoliciesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPoliciesURL) WithBasePath

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

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 GetPolicy

type GetPolicy struct {
	Context *middleware.Context
	Handler GetPolicyHandler
}

GetPolicy swagger:route GET /v1/iam/policy/{policyName} policy getPolicy

Find Policy by name

get an Policy by name

func NewGetPolicy

func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy

NewGetPolicy creates a new http.Handler for the get policy operation

func (*GetPolicy) ServeHTTP

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

type GetPolicyBadRequest

type GetPolicyBadRequest struct {

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

GetPolicyBadRequest Invalid Name supplied

swagger:response getPolicyBadRequest

func NewGetPolicyBadRequest

func NewGetPolicyBadRequest() *GetPolicyBadRequest

NewGetPolicyBadRequest creates GetPolicyBadRequest with default headers values

func (*GetPolicyBadRequest) SetPayload

func (o *GetPolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy bad request response

func (*GetPolicyBadRequest) WithPayload

func (o *GetPolicyBadRequest) WithPayload(payload *v1.Error) *GetPolicyBadRequest

WithPayload adds the payload to the get policy bad request response

func (*GetPolicyBadRequest) WriteResponse

func (o *GetPolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyHandler

type GetPolicyHandler interface {
	Handle(GetPolicyParams, interface{}) middleware.Responder
}

GetPolicyHandler interface for that can handle valid get policy params

type GetPolicyHandlerFunc

type GetPolicyHandlerFunc func(GetPolicyParams, interface{}) middleware.Responder

GetPolicyHandlerFunc turns a function with the right signature into a get policy handler

func (GetPolicyHandlerFunc) Handle

func (fn GetPolicyHandlerFunc) Handle(params GetPolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPolicyInternalServerError

type GetPolicyInternalServerError struct {

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

GetPolicyInternalServerError Internal error

swagger:response getPolicyInternalServerError

func NewGetPolicyInternalServerError

func NewGetPolicyInternalServerError() *GetPolicyInternalServerError

NewGetPolicyInternalServerError creates GetPolicyInternalServerError with default headers values

func (*GetPolicyInternalServerError) SetPayload

func (o *GetPolicyInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy internal server error response

func (*GetPolicyInternalServerError) WithPayload

WithPayload adds the payload to the get policy internal server error response

func (*GetPolicyInternalServerError) WriteResponse

func (o *GetPolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyNotFound

type GetPolicyNotFound struct {

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

GetPolicyNotFound Policy not found

swagger:response getPolicyNotFound

func NewGetPolicyNotFound

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) SetPayload

func (o *GetPolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy not found response

func (*GetPolicyNotFound) WithPayload

func (o *GetPolicyNotFound) WithPayload(payload *v1.Error) *GetPolicyNotFound

WithPayload adds the payload to the get policy not found response

func (*GetPolicyNotFound) WriteResponse

func (o *GetPolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyOK

type GetPolicyOK struct {

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

GetPolicyOK Successful operation

swagger:response getPolicyOK

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates GetPolicyOK with default headers values

func (*GetPolicyOK) SetPayload

func (o *GetPolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the get policy o k response

func (*GetPolicyOK) WithPayload

func (o *GetPolicyOK) WithPayload(payload *v1.Policy) *GetPolicyOK

WithPayload adds the payload to the get policy o k response

func (*GetPolicyOK) WriteResponse

func (o *GetPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyParams

type GetPolicyParams struct {

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

	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request

swagger:parameters getPolicy

func NewGetPolicyParams

func NewGetPolicyParams() GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams object no default values defined in spec.

func (*GetPolicyParams) BindRequest

func (o *GetPolicyParams) 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 NewGetPolicyParams() beforehand.

type GetPolicyURL

type GetPolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

GetPolicyURL generates an URL for the get policy operation

func (*GetPolicyURL) Build

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

Build a url path and query string

func (*GetPolicyURL) BuildFull

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

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

func (*GetPolicyURL) Must

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

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

func (*GetPolicyURL) SetBasePath

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

func (o *GetPolicyURL) String() string

String returns the string representation of the path with query string

func (*GetPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPolicyURL) WithBasePath

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

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 UpdatePolicy

type UpdatePolicy struct {
	Context *middleware.Context
	Handler UpdatePolicyHandler
}

UpdatePolicy swagger:route PUT /v1/iam/policy/{policyName} policy updatePolicy

Update a Policy

func NewUpdatePolicy

func NewUpdatePolicy(ctx *middleware.Context, handler UpdatePolicyHandler) *UpdatePolicy

NewUpdatePolicy creates a new http.Handler for the update policy operation

func (*UpdatePolicy) ServeHTTP

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

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {

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

UpdatePolicyBadRequest Invalid input

swagger:response updatePolicyBadRequest

func NewUpdatePolicyBadRequest

func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest

NewUpdatePolicyBadRequest creates UpdatePolicyBadRequest with default headers values

func (*UpdatePolicyBadRequest) SetPayload

func (o *UpdatePolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) WithPayload

func (o *UpdatePolicyBadRequest) WithPayload(payload *v1.Error) *UpdatePolicyBadRequest

WithPayload adds the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) WriteResponse

func (o *UpdatePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyHandler

type UpdatePolicyHandler interface {
	Handle(UpdatePolicyParams, interface{}) middleware.Responder
}

UpdatePolicyHandler interface for that can handle valid update policy params

type UpdatePolicyHandlerFunc

type UpdatePolicyHandlerFunc func(UpdatePolicyParams, interface{}) middleware.Responder

UpdatePolicyHandlerFunc turns a function with the right signature into a update policy handler

func (UpdatePolicyHandlerFunc) Handle

func (fn UpdatePolicyHandlerFunc) Handle(params UpdatePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdatePolicyInternalServerError

type UpdatePolicyInternalServerError struct {

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

UpdatePolicyInternalServerError Internal error

swagger:response updatePolicyInternalServerError

func NewUpdatePolicyInternalServerError

func NewUpdatePolicyInternalServerError() *UpdatePolicyInternalServerError

NewUpdatePolicyInternalServerError creates UpdatePolicyInternalServerError with default headers values

func (*UpdatePolicyInternalServerError) SetPayload

func (o *UpdatePolicyInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy internal server error response

func (*UpdatePolicyInternalServerError) WithPayload

WithPayload adds the payload to the update policy internal server error response

func (*UpdatePolicyInternalServerError) WriteResponse

func (o *UpdatePolicyInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyNotFound

type UpdatePolicyNotFound struct {

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

UpdatePolicyNotFound Policy not found

swagger:response updatePolicyNotFound

func NewUpdatePolicyNotFound

func NewUpdatePolicyNotFound() *UpdatePolicyNotFound

NewUpdatePolicyNotFound creates UpdatePolicyNotFound with default headers values

func (*UpdatePolicyNotFound) SetPayload

func (o *UpdatePolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy not found response

func (*UpdatePolicyNotFound) WithPayload

func (o *UpdatePolicyNotFound) WithPayload(payload *v1.Error) *UpdatePolicyNotFound

WithPayload adds the payload to the update policy not found response

func (*UpdatePolicyNotFound) WriteResponse

func (o *UpdatePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyOK

type UpdatePolicyOK struct {

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

UpdatePolicyOK Successful update

swagger:response updatePolicyOK

func NewUpdatePolicyOK

func NewUpdatePolicyOK() *UpdatePolicyOK

NewUpdatePolicyOK creates UpdatePolicyOK with default headers values

func (*UpdatePolicyOK) SetPayload

func (o *UpdatePolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the update policy o k response

func (*UpdatePolicyOK) WithPayload

func (o *UpdatePolicyOK) WithPayload(payload *v1.Policy) *UpdatePolicyOK

WithPayload adds the payload to the update policy o k response

func (*UpdatePolicyOK) WriteResponse

func (o *UpdatePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePolicyParams

type UpdatePolicyParams struct {

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

	/*Policy object
	  Required: true
	  In: body
	*/
	Body *v1.Policy
	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

UpdatePolicyParams contains all the bound params for the update policy operation typically these are obtained from a http.Request

swagger:parameters updatePolicy

func NewUpdatePolicyParams

func NewUpdatePolicyParams() UpdatePolicyParams

NewUpdatePolicyParams creates a new UpdatePolicyParams object no default values defined in spec.

func (*UpdatePolicyParams) BindRequest

func (o *UpdatePolicyParams) 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 NewUpdatePolicyParams() beforehand.

type UpdatePolicyURL

type UpdatePolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

UpdatePolicyURL generates an URL for the update policy operation

func (*UpdatePolicyURL) Build

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

Build a url path and query string

func (*UpdatePolicyURL) BuildFull

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

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

func (*UpdatePolicyURL) Must

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

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

func (*UpdatePolicyURL) SetBasePath

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

func (o *UpdatePolicyURL) String() string

String returns the string representation of the path with query string

func (*UpdatePolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdatePolicyURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

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