baseline

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const GetBaselineGetDefinitionNotFoundCode int = 404

GetBaselineGetDefinitionNotFoundCode is the HTTP code returned for type GetBaselineGetDefinitionNotFound

View Source
const GetBaselineGetDefinitionOKCode int = 200

GetBaselineGetDefinitionOKCode is the HTTP code returned for type GetBaselineGetDefinitionOK

View Source
const GetBaselineGetIdsOKCode int = 200

GetBaselineGetIdsOKCode is the HTTP code returned for type GetBaselineGetIdsOK

View Source
const GetBaselineGetListorIDNotFoundCode int = 404

GetBaselineGetListorIDNotFoundCode is the HTTP code returned for type GetBaselineGetListorIDNotFound

View Source
const GetBaselineGetListorIDOKCode int = 200

GetBaselineGetListorIDOKCode is the HTTP code returned for type GetBaselineGetListorIDOK

View Source
const PostBaselineGetPropBadRequestCode int = 400

PostBaselineGetPropBadRequestCode is the HTTP code returned for type PostBaselineGetPropBadRequest

View Source
const PostBaselineGetPropNotFoundCode int = 404

PostBaselineGetPropNotFoundCode is the HTTP code returned for type PostBaselineGetPropNotFound

View Source
const PostBaselineGetPropOKCode int = 200

PostBaselineGetPropOKCode is the HTTP code returned for type PostBaselineGetPropOK

View Source
const PostBaselineValidateBadRequestCode int = 400

PostBaselineValidateBadRequestCode is the HTTP code returned for type PostBaselineValidateBadRequest

View Source
const PostBaselineValidateNotFoundCode int = 404

PostBaselineValidateNotFoundCode is the HTTP code returned for type PostBaselineValidateNotFound

View Source
const PostBaselineValidateOKCode int = 200

PostBaselineValidateOKCode is the HTTP code returned for type PostBaselineValidateOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBaselineGetDefinition

type GetBaselineGetDefinition struct {
	Context *middleware.Context
	Handler GetBaselineGetDefinitionHandler
}
GetBaselineGetDefinition swagger:route GET /baseline/getDefinition baseline getBaselineGetDefinition

Get definition of a Baseline

func NewGetBaselineGetDefinition

func NewGetBaselineGetDefinition(ctx *middleware.Context, handler GetBaselineGetDefinitionHandler) *GetBaselineGetDefinition

NewGetBaselineGetDefinition creates a new http.Handler for the get baseline get definition operation

func (*GetBaselineGetDefinition) ServeHTTP

type GetBaselineGetDefinitionHandler

type GetBaselineGetDefinitionHandler interface {
	Handle(GetBaselineGetDefinitionParams) middleware.Responder
}

GetBaselineGetDefinitionHandler interface for that can handle valid get baseline get definition params

type GetBaselineGetDefinitionHandlerFunc

type GetBaselineGetDefinitionHandlerFunc func(GetBaselineGetDefinitionParams) middleware.Responder

GetBaselineGetDefinitionHandlerFunc turns a function with the right signature into a get baseline get definition handler

func (GetBaselineGetDefinitionHandlerFunc) Handle

Handle executing the request and returning a response

type GetBaselineGetDefinitionNotFound

type GetBaselineGetDefinitionNotFound struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

GetBaselineGetDefinitionNotFound Id not found

swagger:response getBaselineGetDefinitionNotFound

func NewGetBaselineGetDefinitionNotFound

func NewGetBaselineGetDefinitionNotFound() *GetBaselineGetDefinitionNotFound

NewGetBaselineGetDefinitionNotFound creates GetBaselineGetDefinitionNotFound with default headers values

func (*GetBaselineGetDefinitionNotFound) SetPayload

func (o *GetBaselineGetDefinitionNotFound) SetPayload(payload interface{})

SetPayload sets the payload to the get baseline get definition not found response

func (*GetBaselineGetDefinitionNotFound) WithPayload

func (o *GetBaselineGetDefinitionNotFound) WithPayload(payload interface{}) *GetBaselineGetDefinitionNotFound

WithPayload adds the payload to the get baseline get definition not found response

func (*GetBaselineGetDefinitionNotFound) WriteResponse

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

WriteResponse to the client

type GetBaselineGetDefinitionOK

type GetBaselineGetDefinitionOK struct {

	/*
	  In: Body
	*/
	Payload *GetBaselineGetDefinitionOKBody `json:"body,omitempty"`
}

GetBaselineGetDefinitionOK Definition of a Baseline

swagger:response getBaselineGetDefinitionOK

func NewGetBaselineGetDefinitionOK

func NewGetBaselineGetDefinitionOK() *GetBaselineGetDefinitionOK

NewGetBaselineGetDefinitionOK creates GetBaselineGetDefinitionOK with default headers values

func (*GetBaselineGetDefinitionOK) SetPayload

SetPayload sets the payload to the get baseline get definition o k response

func (*GetBaselineGetDefinitionOK) WithPayload

WithPayload adds the payload to the get baseline get definition o k response

func (*GetBaselineGetDefinitionOK) WriteResponse

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

WriteResponse to the client

type GetBaselineGetDefinitionOKBody

type GetBaselineGetDefinitionOKBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// data
	Data *server_model.Baseline4api `json:"data,omitempty"`

	// msg
	Msg string `json:"msg,omitempty"`
}

GetBaselineGetDefinitionOKBody get baseline get definition o k body

swagger:model GetBaselineGetDefinitionOKBody

func (*GetBaselineGetDefinitionOKBody) ContextValidate

func (o *GetBaselineGetDefinitionOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get baseline get definition o k body based on the context it is used

func (*GetBaselineGetDefinitionOKBody) MarshalBinary

func (o *GetBaselineGetDefinitionOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetBaselineGetDefinitionOKBody) UnmarshalBinary

func (o *GetBaselineGetDefinitionOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetBaselineGetDefinitionOKBody) Validate

func (o *GetBaselineGetDefinitionOKBody) Validate(formats strfmt.Registry) error

Validate validates this get baseline get definition o k body

type GetBaselineGetDefinitionParams

type GetBaselineGetDefinitionParams struct {

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

	/*Id of Baseline
	  Required: true
	  In: query
	*/
	ID int64
	/*Include hash of definition
	  In: query
	  Default: false
	*/
	WithHash *bool
	/*Include yaml of definition
	  In: query
	  Default: false
	*/
	WithYaml *bool
}

GetBaselineGetDefinitionParams contains all the bound params for the get baseline get definition operation typically these are obtained from a http.Request

swagger:parameters GetBaselineGetDefinition

func NewGetBaselineGetDefinitionParams

func NewGetBaselineGetDefinitionParams() GetBaselineGetDefinitionParams

NewGetBaselineGetDefinitionParams creates a new GetBaselineGetDefinitionParams object with the default values initialized.

func (*GetBaselineGetDefinitionParams) BindRequest

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 NewGetBaselineGetDefinitionParams() beforehand.

type GetBaselineGetDefinitionURL

type GetBaselineGetDefinitionURL struct {
	ID       int64
	WithHash *bool
	WithYaml *bool
	// contains filtered or unexported fields
}

GetBaselineGetDefinitionURL generates an URL for the get baseline get definition operation

func (*GetBaselineGetDefinitionURL) Build

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

Build a url path and query string

func (*GetBaselineGetDefinitionURL) BuildFull

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

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

func (*GetBaselineGetDefinitionURL) Must

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

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

func (*GetBaselineGetDefinitionURL) SetBasePath

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

func (o *GetBaselineGetDefinitionURL) String() string

String returns the string representation of the path with query string

func (*GetBaselineGetDefinitionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBaselineGetDefinitionURL) 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 GetBaselineGetIds

type GetBaselineGetIds struct {
	Context *middleware.Context
	Handler GetBaselineGetIdsHandler
}
GetBaselineGetIds swagger:route GET /baseline/getIds baseline getBaselineGetIds

Get ids of Baseline

func NewGetBaselineGetIds

func NewGetBaselineGetIds(ctx *middleware.Context, handler GetBaselineGetIdsHandler) *GetBaselineGetIds

NewGetBaselineGetIds creates a new http.Handler for the get baseline get ids operation

func (*GetBaselineGetIds) ServeHTTP

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

type GetBaselineGetIdsHandler

type GetBaselineGetIdsHandler interface {
	Handle(GetBaselineGetIdsParams) middleware.Responder
}

GetBaselineGetIdsHandler interface for that can handle valid get baseline get ids params

type GetBaselineGetIdsHandlerFunc

type GetBaselineGetIdsHandlerFunc func(GetBaselineGetIdsParams) middleware.Responder

GetBaselineGetIdsHandlerFunc turns a function with the right signature into a get baseline get ids handler

func (GetBaselineGetIdsHandlerFunc) Handle

Handle executing the request and returning a response

type GetBaselineGetIdsOK

type GetBaselineGetIdsOK struct {

	/*
	  In: Body
	*/
	Payload *GetBaselineGetIdsOKBody `json:"body,omitempty"`
}

GetBaselineGetIdsOK Ids of Baseline

swagger:response getBaselineGetIdsOK

func NewGetBaselineGetIdsOK

func NewGetBaselineGetIdsOK() *GetBaselineGetIdsOK

NewGetBaselineGetIdsOK creates GetBaselineGetIdsOK with default headers values

func (*GetBaselineGetIdsOK) SetPayload

func (o *GetBaselineGetIdsOK) SetPayload(payload *GetBaselineGetIdsOKBody)

SetPayload sets the payload to the get baseline get ids o k response

func (*GetBaselineGetIdsOK) WithPayload

WithPayload adds the payload to the get baseline get ids o k response

func (*GetBaselineGetIdsOK) WriteResponse

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

WriteResponse to the client

type GetBaselineGetIdsOKBody

type GetBaselineGetIdsOKBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// data
	Data []int64 `json:"data"`

	// msg
	Msg string `json:"msg,omitempty"`
}

GetBaselineGetIdsOKBody get baseline get ids o k body

swagger:model GetBaselineGetIdsOKBody

func (*GetBaselineGetIdsOKBody) ContextValidate

func (o *GetBaselineGetIdsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get baseline get ids o k body based on context it is used

func (*GetBaselineGetIdsOKBody) MarshalBinary

func (o *GetBaselineGetIdsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetBaselineGetIdsOKBody) UnmarshalBinary

func (o *GetBaselineGetIdsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetBaselineGetIdsOKBody) Validate

func (o *GetBaselineGetIdsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get baseline get ids o k body

type GetBaselineGetIdsParams

type GetBaselineGetIdsParams struct {

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

	/*Tag to filter
	  In: query
	  Collection Format: multi
	*/
	Tag []string
}

GetBaselineGetIdsParams contains all the bound params for the get baseline get ids operation typically these are obtained from a http.Request

swagger:parameters GetBaselineGetIds

func NewGetBaselineGetIdsParams

func NewGetBaselineGetIdsParams() GetBaselineGetIdsParams

NewGetBaselineGetIdsParams creates a new GetBaselineGetIdsParams object

There are no default values defined in the spec.

func (*GetBaselineGetIdsParams) BindRequest

func (o *GetBaselineGetIdsParams) 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 NewGetBaselineGetIdsParams() beforehand.

type GetBaselineGetIdsURL

type GetBaselineGetIdsURL struct {
	Tag []string
	// contains filtered or unexported fields
}

GetBaselineGetIdsURL generates an URL for the get baseline get ids operation

func (*GetBaselineGetIdsURL) Build

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

Build a url path and query string

func (*GetBaselineGetIdsURL) BuildFull

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

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

func (*GetBaselineGetIdsURL) Must

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

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

func (*GetBaselineGetIdsURL) SetBasePath

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

func (o *GetBaselineGetIdsURL) String() string

String returns the string representation of the path with query string

func (*GetBaselineGetIdsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBaselineGetIdsURL) WithBasePath

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

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 GetBaselineGetListorID

type GetBaselineGetListorID struct {
	Context *middleware.Context
	Handler GetBaselineGetListorIDHandler
}
GetBaselineGetListorID swagger:route GET /baseline/getListorId baseline getBaselineGetListorId

Get the ids of the Listors used in all the Checkers of the Baseline

func NewGetBaselineGetListorID

func NewGetBaselineGetListorID(ctx *middleware.Context, handler GetBaselineGetListorIDHandler) *GetBaselineGetListorID

NewGetBaselineGetListorID creates a new http.Handler for the get baseline get listor ID operation

func (*GetBaselineGetListorID) ServeHTTP

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

type GetBaselineGetListorIDHandler

type GetBaselineGetListorIDHandler interface {
	Handle(GetBaselineGetListorIDParams) middleware.Responder
}

GetBaselineGetListorIDHandler interface for that can handle valid get baseline get listor ID params

type GetBaselineGetListorIDHandlerFunc

type GetBaselineGetListorIDHandlerFunc func(GetBaselineGetListorIDParams) middleware.Responder

GetBaselineGetListorIDHandlerFunc turns a function with the right signature into a get baseline get listor ID handler

func (GetBaselineGetListorIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetBaselineGetListorIDNotFound

type GetBaselineGetListorIDNotFound struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

GetBaselineGetListorIDNotFound Id not found

swagger:response getBaselineGetListorIdNotFound

func NewGetBaselineGetListorIDNotFound

func NewGetBaselineGetListorIDNotFound() *GetBaselineGetListorIDNotFound

NewGetBaselineGetListorIDNotFound creates GetBaselineGetListorIDNotFound with default headers values

func (*GetBaselineGetListorIDNotFound) SetPayload

func (o *GetBaselineGetListorIDNotFound) SetPayload(payload interface{})

SetPayload sets the payload to the get baseline get listor Id not found response

func (*GetBaselineGetListorIDNotFound) WithPayload

func (o *GetBaselineGetListorIDNotFound) WithPayload(payload interface{}) *GetBaselineGetListorIDNotFound

WithPayload adds the payload to the get baseline get listor Id not found response

func (*GetBaselineGetListorIDNotFound) WriteResponse

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

WriteResponse to the client

type GetBaselineGetListorIDOK

type GetBaselineGetListorIDOK struct {

	/*
	  In: Body
	*/
	Payload *GetBaselineGetListorIDOKBody `json:"body,omitempty"`
}

GetBaselineGetListorIDOK Ids of Listors

swagger:response getBaselineGetListorIdOK

func NewGetBaselineGetListorIDOK

func NewGetBaselineGetListorIDOK() *GetBaselineGetListorIDOK

NewGetBaselineGetListorIDOK creates GetBaselineGetListorIDOK with default headers values

func (*GetBaselineGetListorIDOK) SetPayload

SetPayload sets the payload to the get baseline get listor Id o k response

func (*GetBaselineGetListorIDOK) WithPayload

WithPayload adds the payload to the get baseline get listor Id o k response

func (*GetBaselineGetListorIDOK) WriteResponse

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

WriteResponse to the client

type GetBaselineGetListorIDOKBody

type GetBaselineGetListorIDOKBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// data
	Data []int64 `json:"data"`

	// msg
	Msg string `json:"msg,omitempty"`
}

GetBaselineGetListorIDOKBody get baseline get listor ID o k body

swagger:model GetBaselineGetListorIDOKBody

func (*GetBaselineGetListorIDOKBody) ContextValidate

func (o *GetBaselineGetListorIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get baseline get listor ID o k body based on context it is used

func (*GetBaselineGetListorIDOKBody) MarshalBinary

func (o *GetBaselineGetListorIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetBaselineGetListorIDOKBody) UnmarshalBinary

func (o *GetBaselineGetListorIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetBaselineGetListorIDOKBody) Validate

func (o *GetBaselineGetListorIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get baseline get listor ID o k body

type GetBaselineGetListorIDParams

type GetBaselineGetListorIDParams struct {

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

	/*Id of Baseline
	  Required: true
	  In: query
	*/
	ID int64
}

GetBaselineGetListorIDParams contains all the bound params for the get baseline get listor ID operation typically these are obtained from a http.Request

swagger:parameters GetBaselineGetListorID

func NewGetBaselineGetListorIDParams

func NewGetBaselineGetListorIDParams() GetBaselineGetListorIDParams

NewGetBaselineGetListorIDParams creates a new GetBaselineGetListorIDParams object

There are no default values defined in the spec.

func (*GetBaselineGetListorIDParams) BindRequest

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 NewGetBaselineGetListorIDParams() beforehand.

type GetBaselineGetListorIDURL

type GetBaselineGetListorIDURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetBaselineGetListorIDURL generates an URL for the get baseline get listor ID operation

func (*GetBaselineGetListorIDURL) Build

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

Build a url path and query string

func (*GetBaselineGetListorIDURL) BuildFull

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

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

func (*GetBaselineGetListorIDURL) Must

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

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

func (*GetBaselineGetListorIDURL) SetBasePath

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

func (o *GetBaselineGetListorIDURL) String() string

String returns the string representation of the path with query string

func (*GetBaselineGetListorIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBaselineGetListorIDURL) 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 PostBaselineGetProp

type PostBaselineGetProp struct {
	Context *middleware.Context
	Handler PostBaselineGetPropHandler
}
PostBaselineGetProp swagger:route POST /baseline/getProp baseline postBaselineGetProp

Extract properties from the raw data

func NewPostBaselineGetProp

func NewPostBaselineGetProp(ctx *middleware.Context, handler PostBaselineGetPropHandler) *PostBaselineGetProp

NewPostBaselineGetProp creates a new http.Handler for the post baseline get prop operation

func (*PostBaselineGetProp) ServeHTTP

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

type PostBaselineGetPropBadRequest

type PostBaselineGetPropBadRequest struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostBaselineGetPropBadRequest Error occurs

swagger:response postBaselineGetPropBadRequest

func NewPostBaselineGetPropBadRequest

func NewPostBaselineGetPropBadRequest() *PostBaselineGetPropBadRequest

NewPostBaselineGetPropBadRequest creates PostBaselineGetPropBadRequest with default headers values

func (*PostBaselineGetPropBadRequest) SetPayload

func (o *PostBaselineGetPropBadRequest) SetPayload(payload interface{})

SetPayload sets the payload to the post baseline get prop bad request response

func (*PostBaselineGetPropBadRequest) WithPayload

func (o *PostBaselineGetPropBadRequest) WithPayload(payload interface{}) *PostBaselineGetPropBadRequest

WithPayload adds the payload to the post baseline get prop bad request response

func (*PostBaselineGetPropBadRequest) WriteResponse

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

WriteResponse to the client

type PostBaselineGetPropHandler

type PostBaselineGetPropHandler interface {
	Handle(PostBaselineGetPropParams) middleware.Responder
}

PostBaselineGetPropHandler interface for that can handle valid post baseline get prop params

type PostBaselineGetPropHandlerFunc

type PostBaselineGetPropHandlerFunc func(PostBaselineGetPropParams) middleware.Responder

PostBaselineGetPropHandlerFunc turns a function with the right signature into a post baseline get prop handler

func (PostBaselineGetPropHandlerFunc) Handle

Handle executing the request and returning a response

type PostBaselineGetPropNotFound

type PostBaselineGetPropNotFound struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostBaselineGetPropNotFound Id not found

swagger:response postBaselineGetPropNotFound

func NewPostBaselineGetPropNotFound

func NewPostBaselineGetPropNotFound() *PostBaselineGetPropNotFound

NewPostBaselineGetPropNotFound creates PostBaselineGetPropNotFound with default headers values

func (*PostBaselineGetPropNotFound) SetPayload

func (o *PostBaselineGetPropNotFound) SetPayload(payload interface{})

SetPayload sets the payload to the post baseline get prop not found response

func (*PostBaselineGetPropNotFound) WithPayload

func (o *PostBaselineGetPropNotFound) WithPayload(payload interface{}) *PostBaselineGetPropNotFound

WithPayload adds the payload to the post baseline get prop not found response

func (*PostBaselineGetPropNotFound) WriteResponse

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

WriteResponse to the client

type PostBaselineGetPropOK

type PostBaselineGetPropOK struct {

	/*
	  In: Body
	*/
	Payload *PostBaselineGetPropOKBody `json:"body,omitempty"`
}

PostBaselineGetPropOK List of the result of GetProp of each Checker

swagger:response postBaselineGetPropOK

func NewPostBaselineGetPropOK

func NewPostBaselineGetPropOK() *PostBaselineGetPropOK

NewPostBaselineGetPropOK creates PostBaselineGetPropOK with default headers values

func (*PostBaselineGetPropOK) SetPayload

func (o *PostBaselineGetPropOK) SetPayload(payload *PostBaselineGetPropOKBody)

SetPayload sets the payload to the post baseline get prop o k response

func (*PostBaselineGetPropOK) WithPayload

WithPayload adds the payload to the post baseline get prop o k response

func (*PostBaselineGetPropOK) WriteResponse

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

WriteResponse to the client

type PostBaselineGetPropOKBody

type PostBaselineGetPropOKBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// data
	Data *server_model.BaselineData `json:"data,omitempty"`

	// msg
	Msg string `json:"msg,omitempty"`
}

PostBaselineGetPropOKBody post baseline get prop o k body

swagger:model PostBaselineGetPropOKBody

func (*PostBaselineGetPropOKBody) ContextValidate

func (o *PostBaselineGetPropOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post baseline get prop o k body based on the context it is used

func (*PostBaselineGetPropOKBody) MarshalBinary

func (o *PostBaselineGetPropOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostBaselineGetPropOKBody) UnmarshalBinary

func (o *PostBaselineGetPropOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostBaselineGetPropOKBody) Validate

func (o *PostBaselineGetPropOKBody) Validate(formats strfmt.Registry) error

Validate validates this post baseline get prop o k body

type PostBaselineGetPropParams

type PostBaselineGetPropParams struct {

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

	/*Id of Baseline
	  Required: true
	  In: query
	*/
	ID int64
	/*List of raw data from Listor
	  Required: true
	  In: body
	*/
	ListorData []*server_model.ListorData
	/*Name of authentication profile
	  Required: true
	  In: header
	*/
	Profile string
}

PostBaselineGetPropParams contains all the bound params for the post baseline get prop operation typically these are obtained from a http.Request

swagger:parameters PostBaselineGetProp

func NewPostBaselineGetPropParams

func NewPostBaselineGetPropParams() PostBaselineGetPropParams

NewPostBaselineGetPropParams creates a new PostBaselineGetPropParams object

There are no default values defined in the spec.

func (*PostBaselineGetPropParams) BindRequest

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 NewPostBaselineGetPropParams() beforehand.

type PostBaselineGetPropURL

type PostBaselineGetPropURL struct {
	ID int64
	// contains filtered or unexported fields
}

PostBaselineGetPropURL generates an URL for the post baseline get prop operation

func (*PostBaselineGetPropURL) Build

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

Build a url path and query string

func (*PostBaselineGetPropURL) BuildFull

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

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

func (*PostBaselineGetPropURL) Must

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

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

func (*PostBaselineGetPropURL) SetBasePath

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

func (o *PostBaselineGetPropURL) String() string

String returns the string representation of the path with query string

func (*PostBaselineGetPropURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostBaselineGetPropURL) 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 PostBaselineValidate

type PostBaselineValidate struct {
	Context *middleware.Context
	Handler PostBaselineValidateHandler
}
PostBaselineValidate swagger:route POST /baseline/validate baseline postBaselineValidate

Validate the property against the benchmark and return the result

func NewPostBaselineValidate

func NewPostBaselineValidate(ctx *middleware.Context, handler PostBaselineValidateHandler) *PostBaselineValidate

NewPostBaselineValidate creates a new http.Handler for the post baseline validate operation

func (*PostBaselineValidate) ServeHTTP

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

type PostBaselineValidateBadRequest

type PostBaselineValidateBadRequest struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostBaselineValidateBadRequest Error occurs

swagger:response postBaselineValidateBadRequest

func NewPostBaselineValidateBadRequest

func NewPostBaselineValidateBadRequest() *PostBaselineValidateBadRequest

NewPostBaselineValidateBadRequest creates PostBaselineValidateBadRequest with default headers values

func (*PostBaselineValidateBadRequest) SetPayload

func (o *PostBaselineValidateBadRequest) SetPayload(payload interface{})

SetPayload sets the payload to the post baseline validate bad request response

func (*PostBaselineValidateBadRequest) WithPayload

func (o *PostBaselineValidateBadRequest) WithPayload(payload interface{}) *PostBaselineValidateBadRequest

WithPayload adds the payload to the post baseline validate bad request response

func (*PostBaselineValidateBadRequest) WriteResponse

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

WriteResponse to the client

type PostBaselineValidateHandler

type PostBaselineValidateHandler interface {
	Handle(PostBaselineValidateParams) middleware.Responder
}

PostBaselineValidateHandler interface for that can handle valid post baseline validate params

type PostBaselineValidateHandlerFunc

type PostBaselineValidateHandlerFunc func(PostBaselineValidateParams) middleware.Responder

PostBaselineValidateHandlerFunc turns a function with the right signature into a post baseline validate handler

func (PostBaselineValidateHandlerFunc) Handle

Handle executing the request and returning a response

type PostBaselineValidateNotFound

type PostBaselineValidateNotFound struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostBaselineValidateNotFound Id not found

swagger:response postBaselineValidateNotFound

func NewPostBaselineValidateNotFound

func NewPostBaselineValidateNotFound() *PostBaselineValidateNotFound

NewPostBaselineValidateNotFound creates PostBaselineValidateNotFound with default headers values

func (*PostBaselineValidateNotFound) SetPayload

func (o *PostBaselineValidateNotFound) SetPayload(payload interface{})

SetPayload sets the payload to the post baseline validate not found response

func (*PostBaselineValidateNotFound) WithPayload

func (o *PostBaselineValidateNotFound) WithPayload(payload interface{}) *PostBaselineValidateNotFound

WithPayload adds the payload to the post baseline validate not found response

func (*PostBaselineValidateNotFound) WriteResponse

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

WriteResponse to the client

type PostBaselineValidateOK

type PostBaselineValidateOK struct {

	/*
	  In: Body
	*/
	Payload *PostBaselineValidateOKBody `json:"body,omitempty"`
}

PostBaselineValidateOK List of validation results

swagger:response postBaselineValidateOK

func NewPostBaselineValidateOK

func NewPostBaselineValidateOK() *PostBaselineValidateOK

NewPostBaselineValidateOK creates PostBaselineValidateOK with default headers values

func (*PostBaselineValidateOK) SetPayload

func (o *PostBaselineValidateOK) SetPayload(payload *PostBaselineValidateOKBody)

SetPayload sets the payload to the post baseline validate o k response

func (*PostBaselineValidateOK) WithPayload

WithPayload adds the payload to the post baseline validate o k response

func (*PostBaselineValidateOK) WriteResponse

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

WriteResponse to the client

type PostBaselineValidateOKBody

type PostBaselineValidateOKBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// data
	Data []*server_model.ValidateResult `json:"data"`

	// msg
	Msg string `json:"msg,omitempty"`
}

PostBaselineValidateOKBody post baseline validate o k body

swagger:model PostBaselineValidateOKBody

func (*PostBaselineValidateOKBody) ContextValidate

func (o *PostBaselineValidateOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post baseline validate o k body based on the context it is used

func (*PostBaselineValidateOKBody) MarshalBinary

func (o *PostBaselineValidateOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostBaselineValidateOKBody) UnmarshalBinary

func (o *PostBaselineValidateOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostBaselineValidateOKBody) Validate

func (o *PostBaselineValidateOKBody) Validate(formats strfmt.Registry) error

Validate validates this post baseline validate o k body

type PostBaselineValidateParams

type PostBaselineValidateParams struct {

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

	/*List of properties to be validated
	  Required: true
	  In: body
	*/
	Data *server_model.BaselineData
	/*Id of Baseline
	  Required: true
	  In: query
	*/
	ID int64
	/*Metadata of Baseline to be outputted
	  In: query
	  Collection Format: multi
	*/
	Metadata []string
	/*Whether only returns cloud resources in risk (failing the benchmark check)
	  In: query
	  Default: false
	*/
	RiskOnly *bool
}

PostBaselineValidateParams contains all the bound params for the post baseline validate operation typically these are obtained from a http.Request

swagger:parameters PostBaselineValidate

func NewPostBaselineValidateParams

func NewPostBaselineValidateParams() PostBaselineValidateParams

NewPostBaselineValidateParams creates a new PostBaselineValidateParams object with the default values initialized.

func (*PostBaselineValidateParams) BindRequest

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 NewPostBaselineValidateParams() beforehand.

type PostBaselineValidateURL

type PostBaselineValidateURL struct {
	ID       int64
	Metadata []string
	RiskOnly *bool
	// contains filtered or unexported fields
}

PostBaselineValidateURL generates an URL for the post baseline validate operation

func (*PostBaselineValidateURL) Build

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

Build a url path and query string

func (*PostBaselineValidateURL) BuildFull

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

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

func (*PostBaselineValidateURL) Must

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

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

func (*PostBaselineValidateURL) SetBasePath

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

func (o *PostBaselineValidateURL) String() string

String returns the string representation of the path with query string

func (*PostBaselineValidateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostBaselineValidateURL) 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

Jump to

Keyboard shortcuts

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