entries

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateLogEntryBadRequestCode int = 400

CreateLogEntryBadRequestCode is the HTTP code returned for type CreateLogEntryBadRequest

View Source
const CreateLogEntryConflictCode int = 409

CreateLogEntryConflictCode is the HTTP code returned for type CreateLogEntryConflict

View Source
const CreateLogEntryCreatedCode int = 201

CreateLogEntryCreatedCode is the HTTP code returned for type CreateLogEntryCreated

View Source
const GetLogEntryByIndexNotFoundCode int = 404

GetLogEntryByIndexNotFoundCode is the HTTP code returned for type GetLogEntryByIndexNotFound

View Source
const GetLogEntryByIndexOKCode int = 200

GetLogEntryByIndexOKCode is the HTTP code returned for type GetLogEntryByIndexOK

View Source
const GetLogEntryByUUIDNotFoundCode int = 404

GetLogEntryByUUIDNotFoundCode is the HTTP code returned for type GetLogEntryByUUIDNotFound

View Source
const GetLogEntryByUUIDOKCode int = 200

GetLogEntryByUUIDOKCode is the HTTP code returned for type GetLogEntryByUUIDOK

View Source
const SearchLogQueryBadRequestCode int = 400

SearchLogQueryBadRequestCode is the HTTP code returned for type SearchLogQueryBadRequest

View Source
const SearchLogQueryOKCode int = 200

SearchLogQueryOKCode is the HTTP code returned for type SearchLogQueryOK

View Source
const SearchLogQueryUnprocessableEntityCode int = 422

SearchLogQueryUnprocessableEntityCode is the HTTP code returned for type SearchLogQueryUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLogEntry

type CreateLogEntry struct {
	Context *middleware.Context
	Handler CreateLogEntryHandler
}
CreateLogEntry swagger:route POST /api/v1/log/entries entries createLogEntry

Creates an entry in the transparency log

Creates an entry in the transparency log for a detached signature, public key, and content. Items can be included in the request or fetched by the server when URLs are specified.

func NewCreateLogEntry

func NewCreateLogEntry(ctx *middleware.Context, handler CreateLogEntryHandler) *CreateLogEntry

NewCreateLogEntry creates a new http.Handler for the create log entry operation

func (*CreateLogEntry) ServeHTTP

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

type CreateLogEntryBadRequest

type CreateLogEntryBadRequest struct {

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

CreateLogEntryBadRequest The content supplied to the server was invalid

swagger:response createLogEntryBadRequest

func NewCreateLogEntryBadRequest

func NewCreateLogEntryBadRequest() *CreateLogEntryBadRequest

NewCreateLogEntryBadRequest creates CreateLogEntryBadRequest with default headers values

func (*CreateLogEntryBadRequest) SetPayload

func (o *CreateLogEntryBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the create log entry bad request response

func (*CreateLogEntryBadRequest) WithPayload

WithPayload adds the payload to the create log entry bad request response

func (*CreateLogEntryBadRequest) WriteResponse

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

WriteResponse to the client

type CreateLogEntryConflict

type CreateLogEntryConflict struct {
	/*

	 */
	Location strfmt.URI `json:"Location"`

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

CreateLogEntryConflict The request conflicts with the current state of the transparency log

swagger:response createLogEntryConflict

func NewCreateLogEntryConflict

func NewCreateLogEntryConflict() *CreateLogEntryConflict

NewCreateLogEntryConflict creates CreateLogEntryConflict with default headers values

func (*CreateLogEntryConflict) SetLocation added in v0.2.0

func (o *CreateLogEntryConflict) SetLocation(location strfmt.URI)

SetLocation sets the location to the create log entry conflict response

func (*CreateLogEntryConflict) SetPayload

func (o *CreateLogEntryConflict) SetPayload(payload *models.Error)

SetPayload sets the payload to the create log entry conflict response

func (*CreateLogEntryConflict) WithLocation added in v0.2.0

func (o *CreateLogEntryConflict) WithLocation(location strfmt.URI) *CreateLogEntryConflict

WithLocation adds the location to the create log entry conflict response

func (*CreateLogEntryConflict) WithPayload

func (o *CreateLogEntryConflict) WithPayload(payload *models.Error) *CreateLogEntryConflict

WithPayload adds the payload to the create log entry conflict response

func (*CreateLogEntryConflict) WriteResponse

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

WriteResponse to the client

type CreateLogEntryCreated

type CreateLogEntryCreated struct {
	/*UUID of log entry

	 */
	ETag string `json:"ETag"`
	/*URI location of log entry

	 */
	Location strfmt.URI `json:"Location"`

	/*
	  In: Body
	*/
	Payload models.LogEntry `json:"body,omitempty"`
}

CreateLogEntryCreated Returns the entry created in the transparency log

swagger:response createLogEntryCreated

func NewCreateLogEntryCreated

func NewCreateLogEntryCreated() *CreateLogEntryCreated

NewCreateLogEntryCreated creates CreateLogEntryCreated with default headers values

func (*CreateLogEntryCreated) SetETag

func (o *CreateLogEntryCreated) SetETag(eTag string)

SetETag sets the eTag to the create log entry created response

func (*CreateLogEntryCreated) SetLocation

func (o *CreateLogEntryCreated) SetLocation(location strfmt.URI)

SetLocation sets the location to the create log entry created response

func (*CreateLogEntryCreated) SetPayload

func (o *CreateLogEntryCreated) SetPayload(payload models.LogEntry)

SetPayload sets the payload to the create log entry created response

func (*CreateLogEntryCreated) WithETag

WithETag adds the eTag to the create log entry created response

func (*CreateLogEntryCreated) WithLocation

func (o *CreateLogEntryCreated) WithLocation(location strfmt.URI) *CreateLogEntryCreated

WithLocation adds the location to the create log entry created response

func (*CreateLogEntryCreated) WithPayload

WithPayload adds the payload to the create log entry created response

func (*CreateLogEntryCreated) WriteResponse

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

WriteResponse to the client

type CreateLogEntryDefault

type CreateLogEntryDefault struct {

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

CreateLogEntryDefault There was an internal error in the server while processing the request

swagger:response createLogEntryDefault

func NewCreateLogEntryDefault

func NewCreateLogEntryDefault(code int) *CreateLogEntryDefault

NewCreateLogEntryDefault creates CreateLogEntryDefault with default headers values

func (*CreateLogEntryDefault) SetPayload

func (o *CreateLogEntryDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create log entry default response

func (*CreateLogEntryDefault) SetStatusCode

func (o *CreateLogEntryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create log entry default response

func (*CreateLogEntryDefault) WithPayload

func (o *CreateLogEntryDefault) WithPayload(payload *models.Error) *CreateLogEntryDefault

WithPayload adds the payload to the create log entry default response

func (*CreateLogEntryDefault) WithStatusCode

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

WithStatusCode adds the status to the create log entry default response

func (*CreateLogEntryDefault) WriteResponse

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

WriteResponse to the client

type CreateLogEntryHandler

type CreateLogEntryHandler interface {
	Handle(CreateLogEntryParams) middleware.Responder
}

CreateLogEntryHandler interface for that can handle valid create log entry params

type CreateLogEntryHandlerFunc

type CreateLogEntryHandlerFunc func(CreateLogEntryParams) middleware.Responder

CreateLogEntryHandlerFunc turns a function with the right signature into a create log entry handler

func (CreateLogEntryHandlerFunc) Handle

Handle executing the request and returning a response

type CreateLogEntryParams

type CreateLogEntryParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	ProposedEntry models.ProposedEntry
}

CreateLogEntryParams contains all the bound params for the create log entry operation typically these are obtained from a http.Request

swagger:parameters createLogEntry

func NewCreateLogEntryParams

func NewCreateLogEntryParams() CreateLogEntryParams

NewCreateLogEntryParams creates a new CreateLogEntryParams object

There are no default values defined in the spec.

func (*CreateLogEntryParams) BindRequest

func (o *CreateLogEntryParams) 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 NewCreateLogEntryParams() beforehand.

type CreateLogEntryURL

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

CreateLogEntryURL generates an URL for the create log entry operation

func (*CreateLogEntryURL) Build

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

Build a url path and query string

func (*CreateLogEntryURL) BuildFull

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

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

func (*CreateLogEntryURL) Must

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

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

func (*CreateLogEntryURL) SetBasePath

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

func (o *CreateLogEntryURL) String() string

String returns the string representation of the path with query string

func (*CreateLogEntryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateLogEntryURL) WithBasePath

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

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 GetLogEntryByIndex

type GetLogEntryByIndex struct {
	Context *middleware.Context
	Handler GetLogEntryByIndexHandler
}
GetLogEntryByIndex swagger:route GET /api/v1/log/entries entries getLogEntryByIndex

Retrieves an entry and inclusion proof from the transparency log (if it exists) by index

func NewGetLogEntryByIndex

func NewGetLogEntryByIndex(ctx *middleware.Context, handler GetLogEntryByIndexHandler) *GetLogEntryByIndex

NewGetLogEntryByIndex creates a new http.Handler for the get log entry by index operation

func (*GetLogEntryByIndex) ServeHTTP

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

type GetLogEntryByIndexDefault

type GetLogEntryByIndexDefault struct {

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

GetLogEntryByIndexDefault There was an internal error in the server while processing the request

swagger:response getLogEntryByIndexDefault

func NewGetLogEntryByIndexDefault

func NewGetLogEntryByIndexDefault(code int) *GetLogEntryByIndexDefault

NewGetLogEntryByIndexDefault creates GetLogEntryByIndexDefault with default headers values

func (*GetLogEntryByIndexDefault) SetPayload

func (o *GetLogEntryByIndexDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get log entry by index default response

func (*GetLogEntryByIndexDefault) SetStatusCode

func (o *GetLogEntryByIndexDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get log entry by index default response

func (*GetLogEntryByIndexDefault) WithPayload

WithPayload adds the payload to the get log entry by index default response

func (*GetLogEntryByIndexDefault) WithStatusCode

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

WithStatusCode adds the status to the get log entry by index default response

func (*GetLogEntryByIndexDefault) WriteResponse

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

WriteResponse to the client

type GetLogEntryByIndexHandler

type GetLogEntryByIndexHandler interface {
	Handle(GetLogEntryByIndexParams) middleware.Responder
}

GetLogEntryByIndexHandler interface for that can handle valid get log entry by index params

type GetLogEntryByIndexHandlerFunc

type GetLogEntryByIndexHandlerFunc func(GetLogEntryByIndexParams) middleware.Responder

GetLogEntryByIndexHandlerFunc turns a function with the right signature into a get log entry by index handler

func (GetLogEntryByIndexHandlerFunc) Handle

Handle executing the request and returning a response

type GetLogEntryByIndexNotFound

type GetLogEntryByIndexNotFound struct {
}

GetLogEntryByIndexNotFound The content requested could not be found

swagger:response getLogEntryByIndexNotFound

func NewGetLogEntryByIndexNotFound

func NewGetLogEntryByIndexNotFound() *GetLogEntryByIndexNotFound

NewGetLogEntryByIndexNotFound creates GetLogEntryByIndexNotFound with default headers values

func (*GetLogEntryByIndexNotFound) WriteResponse

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

WriteResponse to the client

type GetLogEntryByIndexOK

type GetLogEntryByIndexOK struct {

	/*
	  In: Body
	*/
	Payload models.LogEntry `json:"body,omitempty"`
}

GetLogEntryByIndexOK the entry in the transparency log requested along with an inclusion proof

swagger:response getLogEntryByIndexOK

func NewGetLogEntryByIndexOK

func NewGetLogEntryByIndexOK() *GetLogEntryByIndexOK

NewGetLogEntryByIndexOK creates GetLogEntryByIndexOK with default headers values

func (*GetLogEntryByIndexOK) SetPayload

func (o *GetLogEntryByIndexOK) SetPayload(payload models.LogEntry)

SetPayload sets the payload to the get log entry by index o k response

func (*GetLogEntryByIndexOK) WithPayload

func (o *GetLogEntryByIndexOK) WithPayload(payload models.LogEntry) *GetLogEntryByIndexOK

WithPayload adds the payload to the get log entry by index o k response

func (*GetLogEntryByIndexOK) WriteResponse

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

WriteResponse to the client

type GetLogEntryByIndexParams

type GetLogEntryByIndexParams struct {

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

	/*specifies the index of the entry in the transparency log to be retrieved
	  Required: true
	  Minimum: 0
	  In: query
	*/
	LogIndex int64
}

GetLogEntryByIndexParams contains all the bound params for the get log entry by index operation typically these are obtained from a http.Request

swagger:parameters getLogEntryByIndex

func NewGetLogEntryByIndexParams

func NewGetLogEntryByIndexParams() GetLogEntryByIndexParams

NewGetLogEntryByIndexParams creates a new GetLogEntryByIndexParams object

There are no default values defined in the spec.

func (*GetLogEntryByIndexParams) 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 NewGetLogEntryByIndexParams() beforehand.

type GetLogEntryByIndexURL

type GetLogEntryByIndexURL struct {
	LogIndex int64
	// contains filtered or unexported fields
}

GetLogEntryByIndexURL generates an URL for the get log entry by index operation

func (*GetLogEntryByIndexURL) Build

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

Build a url path and query string

func (*GetLogEntryByIndexURL) BuildFull

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

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

func (*GetLogEntryByIndexURL) Must

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

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

func (*GetLogEntryByIndexURL) SetBasePath

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

func (o *GetLogEntryByIndexURL) String() string

String returns the string representation of the path with query string

func (*GetLogEntryByIndexURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLogEntryByIndexURL) WithBasePath

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

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 GetLogEntryByUUID

type GetLogEntryByUUID struct {
	Context *middleware.Context
	Handler GetLogEntryByUUIDHandler
}
GetLogEntryByUUID swagger:route GET /api/v1/log/entries/{entryUUID} entries getLogEntryByUuid

Get log entry and information required to generate an inclusion proof for the entry in the transparency log

Returns the entry, root hash, tree size, and a list of hashes that can be used to calculate proof of an entry being included in the transparency log

func NewGetLogEntryByUUID

func NewGetLogEntryByUUID(ctx *middleware.Context, handler GetLogEntryByUUIDHandler) *GetLogEntryByUUID

NewGetLogEntryByUUID creates a new http.Handler for the get log entry by UUID operation

func (*GetLogEntryByUUID) ServeHTTP

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

type GetLogEntryByUUIDDefault

type GetLogEntryByUUIDDefault struct {

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

GetLogEntryByUUIDDefault There was an internal error in the server while processing the request

swagger:response getLogEntryByUuidDefault

func NewGetLogEntryByUUIDDefault

func NewGetLogEntryByUUIDDefault(code int) *GetLogEntryByUUIDDefault

NewGetLogEntryByUUIDDefault creates GetLogEntryByUUIDDefault with default headers values

func (*GetLogEntryByUUIDDefault) SetPayload

func (o *GetLogEntryByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get log entry by UUID default response

func (*GetLogEntryByUUIDDefault) SetStatusCode

func (o *GetLogEntryByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get log entry by UUID default response

func (*GetLogEntryByUUIDDefault) WithPayload

WithPayload adds the payload to the get log entry by UUID default response

func (*GetLogEntryByUUIDDefault) WithStatusCode

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

WithStatusCode adds the status to the get log entry by UUID default response

func (*GetLogEntryByUUIDDefault) WriteResponse

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

WriteResponse to the client

type GetLogEntryByUUIDHandler

type GetLogEntryByUUIDHandler interface {
	Handle(GetLogEntryByUUIDParams) middleware.Responder
}

GetLogEntryByUUIDHandler interface for that can handle valid get log entry by UUID params

type GetLogEntryByUUIDHandlerFunc

type GetLogEntryByUUIDHandlerFunc func(GetLogEntryByUUIDParams) middleware.Responder

GetLogEntryByUUIDHandlerFunc turns a function with the right signature into a get log entry by UUID handler

func (GetLogEntryByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetLogEntryByUUIDNotFound

type GetLogEntryByUUIDNotFound struct {
}

GetLogEntryByUUIDNotFound The content requested could not be found

swagger:response getLogEntryByUuidNotFound

func NewGetLogEntryByUUIDNotFound

func NewGetLogEntryByUUIDNotFound() *GetLogEntryByUUIDNotFound

NewGetLogEntryByUUIDNotFound creates GetLogEntryByUUIDNotFound with default headers values

func (*GetLogEntryByUUIDNotFound) WriteResponse

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

WriteResponse to the client

type GetLogEntryByUUIDOK

type GetLogEntryByUUIDOK struct {

	/*
	  In: Body
	*/
	Payload models.LogEntry `json:"body,omitempty"`
}

GetLogEntryByUUIDOK Information needed for a client to compute the inclusion proof

swagger:response getLogEntryByUuidOK

func NewGetLogEntryByUUIDOK

func NewGetLogEntryByUUIDOK() *GetLogEntryByUUIDOK

NewGetLogEntryByUUIDOK creates GetLogEntryByUUIDOK with default headers values

func (*GetLogEntryByUUIDOK) SetPayload

func (o *GetLogEntryByUUIDOK) SetPayload(payload models.LogEntry)

SetPayload sets the payload to the get log entry by Uuid o k response

func (*GetLogEntryByUUIDOK) WithPayload

func (o *GetLogEntryByUUIDOK) WithPayload(payload models.LogEntry) *GetLogEntryByUUIDOK

WithPayload adds the payload to the get log entry by Uuid o k response

func (*GetLogEntryByUUIDOK) WriteResponse

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

WriteResponse to the client

type GetLogEntryByUUIDParams

type GetLogEntryByUUIDParams struct {

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

	/*the UUID of the entry for which the inclusion proof information should be returned
	  Required: true
	  Pattern: ^([0-9a-fA-F]{64}|[0-9a-fA-F]{80})$
	  In: path
	*/
	EntryUUID string
}

GetLogEntryByUUIDParams contains all the bound params for the get log entry by UUID operation typically these are obtained from a http.Request

swagger:parameters getLogEntryByUUID

func NewGetLogEntryByUUIDParams

func NewGetLogEntryByUUIDParams() GetLogEntryByUUIDParams

NewGetLogEntryByUUIDParams creates a new GetLogEntryByUUIDParams object

There are no default values defined in the spec.

func (*GetLogEntryByUUIDParams) BindRequest

func (o *GetLogEntryByUUIDParams) 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 NewGetLogEntryByUUIDParams() beforehand.

type GetLogEntryByUUIDURL

type GetLogEntryByUUIDURL struct {
	EntryUUID string
	// contains filtered or unexported fields
}

GetLogEntryByUUIDURL generates an URL for the get log entry by UUID operation

func (*GetLogEntryByUUIDURL) Build

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

Build a url path and query string

func (*GetLogEntryByUUIDURL) BuildFull

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

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

func (*GetLogEntryByUUIDURL) Must

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

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

func (*GetLogEntryByUUIDURL) SetBasePath

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

func (o *GetLogEntryByUUIDURL) String() string

String returns the string representation of the path with query string

func (*GetLogEntryByUUIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetLogEntryByUUIDURL) WithBasePath

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

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 SearchLogQuery

type SearchLogQuery struct {
	Context *middleware.Context
	Handler SearchLogQueryHandler
}
SearchLogQuery swagger:route POST /api/v1/log/entries/retrieve entries searchLogQuery

Searches transparency log for one or more log entries

func NewSearchLogQuery

func NewSearchLogQuery(ctx *middleware.Context, handler SearchLogQueryHandler) *SearchLogQuery

NewSearchLogQuery creates a new http.Handler for the search log query operation

func (*SearchLogQuery) ServeHTTP

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

type SearchLogQueryBadRequest

type SearchLogQueryBadRequest struct {

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

SearchLogQueryBadRequest The content supplied to the server was invalid

swagger:response searchLogQueryBadRequest

func NewSearchLogQueryBadRequest

func NewSearchLogQueryBadRequest() *SearchLogQueryBadRequest

NewSearchLogQueryBadRequest creates SearchLogQueryBadRequest with default headers values

func (*SearchLogQueryBadRequest) SetPayload

func (o *SearchLogQueryBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the search log query bad request response

func (*SearchLogQueryBadRequest) WithPayload

WithPayload adds the payload to the search log query bad request response

func (*SearchLogQueryBadRequest) WriteResponse

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

WriteResponse to the client

type SearchLogQueryDefault

type SearchLogQueryDefault struct {

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

SearchLogQueryDefault There was an internal error in the server while processing the request

swagger:response searchLogQueryDefault

func NewSearchLogQueryDefault

func NewSearchLogQueryDefault(code int) *SearchLogQueryDefault

NewSearchLogQueryDefault creates SearchLogQueryDefault with default headers values

func (*SearchLogQueryDefault) SetPayload

func (o *SearchLogQueryDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the search log query default response

func (*SearchLogQueryDefault) SetStatusCode

func (o *SearchLogQueryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the search log query default response

func (*SearchLogQueryDefault) WithPayload

func (o *SearchLogQueryDefault) WithPayload(payload *models.Error) *SearchLogQueryDefault

WithPayload adds the payload to the search log query default response

func (*SearchLogQueryDefault) WithStatusCode

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

WithStatusCode adds the status to the search log query default response

func (*SearchLogQueryDefault) WriteResponse

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

WriteResponse to the client

type SearchLogQueryHandler

type SearchLogQueryHandler interface {
	Handle(SearchLogQueryParams) middleware.Responder
}

SearchLogQueryHandler interface for that can handle valid search log query params

type SearchLogQueryHandlerFunc

type SearchLogQueryHandlerFunc func(SearchLogQueryParams) middleware.Responder

SearchLogQueryHandlerFunc turns a function with the right signature into a search log query handler

func (SearchLogQueryHandlerFunc) Handle

Handle executing the request and returning a response

type SearchLogQueryOK

type SearchLogQueryOK struct {

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

SearchLogQueryOK Returns zero or more entries from the transparency log, according to how many were included in request query

swagger:response searchLogQueryOK

func NewSearchLogQueryOK

func NewSearchLogQueryOK() *SearchLogQueryOK

NewSearchLogQueryOK creates SearchLogQueryOK with default headers values

func (*SearchLogQueryOK) SetPayload

func (o *SearchLogQueryOK) SetPayload(payload []models.LogEntry)

SetPayload sets the payload to the search log query o k response

func (*SearchLogQueryOK) WithPayload

func (o *SearchLogQueryOK) WithPayload(payload []models.LogEntry) *SearchLogQueryOK

WithPayload adds the payload to the search log query o k response

func (*SearchLogQueryOK) WriteResponse

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

WriteResponse to the client

type SearchLogQueryParams

type SearchLogQueryParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Entry *models.SearchLogQuery
}

SearchLogQueryParams contains all the bound params for the search log query operation typically these are obtained from a http.Request

swagger:parameters searchLogQuery

func NewSearchLogQueryParams

func NewSearchLogQueryParams() SearchLogQueryParams

NewSearchLogQueryParams creates a new SearchLogQueryParams object

There are no default values defined in the spec.

func (*SearchLogQueryParams) BindRequest

func (o *SearchLogQueryParams) 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 NewSearchLogQueryParams() beforehand.

type SearchLogQueryURL

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

SearchLogQueryURL generates an URL for the search log query operation

func (*SearchLogQueryURL) Build

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

Build a url path and query string

func (*SearchLogQueryURL) BuildFull

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

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

func (*SearchLogQueryURL) Must

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

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

func (*SearchLogQueryURL) SetBasePath

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

func (o *SearchLogQueryURL) String() string

String returns the string representation of the path with query string

func (*SearchLogQueryURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SearchLogQueryURL) WithBasePath

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

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 SearchLogQueryUnprocessableEntity added in v1.0.1

type SearchLogQueryUnprocessableEntity struct {

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

SearchLogQueryUnprocessableEntity The server understood the request but is unable to process the contained instructions

swagger:response searchLogQueryUnprocessableEntity

func NewSearchLogQueryUnprocessableEntity added in v1.0.1

func NewSearchLogQueryUnprocessableEntity() *SearchLogQueryUnprocessableEntity

NewSearchLogQueryUnprocessableEntity creates SearchLogQueryUnprocessableEntity with default headers values

func (*SearchLogQueryUnprocessableEntity) SetPayload added in v1.0.1

func (o *SearchLogQueryUnprocessableEntity) SetPayload(payload *models.Error)

SetPayload sets the payload to the search log query unprocessable entity response

func (*SearchLogQueryUnprocessableEntity) WithPayload added in v1.0.1

WithPayload adds the payload to the search log query unprocessable entity response

func (*SearchLogQueryUnprocessableEntity) WriteResponse added in v1.0.1

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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