network_observation_file_upload_and_status

package
v0.0.0-...-bbc5c3a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for network observation file upload and status API

func (*Client) GetKmlForTransID

func (a *Client) GetKmlForTransID(params *GetKmlForTransIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetKmlForTransIDOK, error)

GetKmlForTransID downloads a k m l summary of a file

Get a KML summary approximation for a successfully processed file uploaded by the current user

func (*Client) GetTransLogsForUser

func (a *Client) GetTransLogsForUser(params *GetTransLogsForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransLogsForUserOK, error)

GetTransLogsForUser gets the status of files uploaded by the current user

Results in response model paginated at 100 results per page

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Upload

func (a *Client) Upload(params *UploadParams, opts ...ClientOption) (*UploadOK, error)

Upload uploads a file

Transmit a file for processing and incorporation into the database. Supports DStumbler, G-Mon, inSSIDer, Kismac, Kismet, MacStumbler, NetStumbler, Pocket Warrior, Wardrive-Android, WiFiFoFum, WiFi-Where, WiGLE WiFi Wardriving, and Apple consolidated DB formats. One or more files may be enclosed within a zip, tar, or tar.gz archive. Files may not exceed 180MiB, and archives WILL IGNORE more than 200 member files. For documentation on WiGLE Wireless CSV files, see https://api.wigle.net/csvFormat.html

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetKmlForTransID(params *GetKmlForTransIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetKmlForTransIDOK, error)

	GetTransLogsForUser(params *GetTransLogsForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransLogsForUserOK, error)

	Upload(params *UploadParams, opts ...ClientOption) (*UploadOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new network observation file upload and status API client.

type GetKmlForTransIDOK

type GetKmlForTransIDOK struct {
}

GetKmlForTransIDOK describes a response with status code 200, with default header values.

Request successful

func NewGetKmlForTransIDOK

func NewGetKmlForTransIDOK() *GetKmlForTransIDOK

NewGetKmlForTransIDOK creates a GetKmlForTransIDOK with default headers values

func (*GetKmlForTransIDOK) Error

func (o *GetKmlForTransIDOK) Error() string

func (*GetKmlForTransIDOK) IsClientError

func (o *GetKmlForTransIDOK) IsClientError() bool

IsClientError returns true when this get kml for trans Id o k response has a 4xx status code

func (*GetKmlForTransIDOK) IsCode

func (o *GetKmlForTransIDOK) IsCode(code int) bool

IsCode returns true when this get kml for trans Id o k response a status code equal to that given

func (*GetKmlForTransIDOK) IsRedirect

func (o *GetKmlForTransIDOK) IsRedirect() bool

IsRedirect returns true when this get kml for trans Id o k response has a 3xx status code

func (*GetKmlForTransIDOK) IsServerError

func (o *GetKmlForTransIDOK) IsServerError() bool

IsServerError returns true when this get kml for trans Id o k response has a 5xx status code

func (*GetKmlForTransIDOK) IsSuccess

func (o *GetKmlForTransIDOK) IsSuccess() bool

IsSuccess returns true when this get kml for trans Id o k response has a 2xx status code

func (*GetKmlForTransIDOK) String

func (o *GetKmlForTransIDOK) String() string

type GetKmlForTransIDParams

type GetKmlForTransIDParams struct {

	/* Transid.

	   The unique transaction ID for the file
	*/
	Transid string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetKmlForTransIDParams contains all the parameters to send to the API endpoint

for the get kml for trans Id operation.

Typically these are written to a http.Request.

func NewGetKmlForTransIDParams

func NewGetKmlForTransIDParams() *GetKmlForTransIDParams

NewGetKmlForTransIDParams creates a new GetKmlForTransIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetKmlForTransIDParamsWithContext

func NewGetKmlForTransIDParamsWithContext(ctx context.Context) *GetKmlForTransIDParams

NewGetKmlForTransIDParamsWithContext creates a new GetKmlForTransIDParams object with the ability to set a context for a request.

func NewGetKmlForTransIDParamsWithHTTPClient

func NewGetKmlForTransIDParamsWithHTTPClient(client *http.Client) *GetKmlForTransIDParams

NewGetKmlForTransIDParamsWithHTTPClient creates a new GetKmlForTransIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetKmlForTransIDParamsWithTimeout

func NewGetKmlForTransIDParamsWithTimeout(timeout time.Duration) *GetKmlForTransIDParams

NewGetKmlForTransIDParamsWithTimeout creates a new GetKmlForTransIDParams object with the ability to set a timeout on a request.

func (*GetKmlForTransIDParams) SetContext

func (o *GetKmlForTransIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get kml for trans Id params

func (*GetKmlForTransIDParams) SetDefaults

func (o *GetKmlForTransIDParams) SetDefaults()

SetDefaults hydrates default values in the get kml for trans Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetKmlForTransIDParams) SetHTTPClient

func (o *GetKmlForTransIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get kml for trans Id params

func (*GetKmlForTransIDParams) SetTimeout

func (o *GetKmlForTransIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get kml for trans Id params

func (*GetKmlForTransIDParams) SetTransid

func (o *GetKmlForTransIDParams) SetTransid(transid string)

SetTransid adds the transid to the get kml for trans Id params

func (*GetKmlForTransIDParams) WithContext

WithContext adds the context to the get kml for trans Id params

func (*GetKmlForTransIDParams) WithDefaults

WithDefaults hydrates default values in the get kml for trans Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetKmlForTransIDParams) WithHTTPClient

func (o *GetKmlForTransIDParams) WithHTTPClient(client *http.Client) *GetKmlForTransIDParams

WithHTTPClient adds the HTTPClient to the get kml for trans Id params

func (*GetKmlForTransIDParams) WithTimeout

WithTimeout adds the timeout to the get kml for trans Id params

func (*GetKmlForTransIDParams) WithTransid

func (o *GetKmlForTransIDParams) WithTransid(transid string) *GetKmlForTransIDParams

WithTransid adds the transid to the get kml for trans Id params

func (*GetKmlForTransIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetKmlForTransIDReader

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

GetKmlForTransIDReader is a Reader for the GetKmlForTransID structure.

func (*GetKmlForTransIDReader) ReadResponse

func (o *GetKmlForTransIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetKmlForTransIDUnauthorized

type GetKmlForTransIDUnauthorized struct {
}

GetKmlForTransIDUnauthorized describes a response with status code 401, with default header values.

User not authenticated

func NewGetKmlForTransIDUnauthorized

func NewGetKmlForTransIDUnauthorized() *GetKmlForTransIDUnauthorized

NewGetKmlForTransIDUnauthorized creates a GetKmlForTransIDUnauthorized with default headers values

func (*GetKmlForTransIDUnauthorized) Error

func (*GetKmlForTransIDUnauthorized) IsClientError

func (o *GetKmlForTransIDUnauthorized) IsClientError() bool

IsClientError returns true when this get kml for trans Id unauthorized response has a 4xx status code

func (*GetKmlForTransIDUnauthorized) IsCode

func (o *GetKmlForTransIDUnauthorized) IsCode(code int) bool

IsCode returns true when this get kml for trans Id unauthorized response a status code equal to that given

func (*GetKmlForTransIDUnauthorized) IsRedirect

func (o *GetKmlForTransIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this get kml for trans Id unauthorized response has a 3xx status code

func (*GetKmlForTransIDUnauthorized) IsServerError

func (o *GetKmlForTransIDUnauthorized) IsServerError() bool

IsServerError returns true when this get kml for trans Id unauthorized response has a 5xx status code

func (*GetKmlForTransIDUnauthorized) IsSuccess

func (o *GetKmlForTransIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this get kml for trans Id unauthorized response has a 2xx status code

func (*GetKmlForTransIDUnauthorized) String

type GetTransLogsForUserOK

type GetTransLogsForUserOK struct {
	Payload *models.TranslogResponse
}

GetTransLogsForUserOK describes a response with status code 200, with default header values.

Request successful

func NewGetTransLogsForUserOK

func NewGetTransLogsForUserOK() *GetTransLogsForUserOK

NewGetTransLogsForUserOK creates a GetTransLogsForUserOK with default headers values

func (*GetTransLogsForUserOK) Error

func (o *GetTransLogsForUserOK) Error() string

func (*GetTransLogsForUserOK) GetPayload

func (*GetTransLogsForUserOK) IsClientError

func (o *GetTransLogsForUserOK) IsClientError() bool

IsClientError returns true when this get trans logs for user o k response has a 4xx status code

func (*GetTransLogsForUserOK) IsCode

func (o *GetTransLogsForUserOK) IsCode(code int) bool

IsCode returns true when this get trans logs for user o k response a status code equal to that given

func (*GetTransLogsForUserOK) IsRedirect

func (o *GetTransLogsForUserOK) IsRedirect() bool

IsRedirect returns true when this get trans logs for user o k response has a 3xx status code

func (*GetTransLogsForUserOK) IsServerError

func (o *GetTransLogsForUserOK) IsServerError() bool

IsServerError returns true when this get trans logs for user o k response has a 5xx status code

func (*GetTransLogsForUserOK) IsSuccess

func (o *GetTransLogsForUserOK) IsSuccess() bool

IsSuccess returns true when this get trans logs for user o k response has a 2xx status code

func (*GetTransLogsForUserOK) String

func (o *GetTransLogsForUserOK) String() string

type GetTransLogsForUserParams

type GetTransLogsForUserParams struct {

	/* Pageend.

	   Number of results to fetch from offset. Defaults to 100

	   Format: int64
	*/
	Pageend *int64

	/* Pagestart.

	   Most recent record to fetch descending chronologically. Defaults to 0

	   Format: int64
	*/
	Pagestart *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTransLogsForUserParams contains all the parameters to send to the API endpoint

for the get trans logs for user operation.

Typically these are written to a http.Request.

func NewGetTransLogsForUserParams

func NewGetTransLogsForUserParams() *GetTransLogsForUserParams

NewGetTransLogsForUserParams creates a new GetTransLogsForUserParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetTransLogsForUserParamsWithContext

func NewGetTransLogsForUserParamsWithContext(ctx context.Context) *GetTransLogsForUserParams

NewGetTransLogsForUserParamsWithContext creates a new GetTransLogsForUserParams object with the ability to set a context for a request.

func NewGetTransLogsForUserParamsWithHTTPClient

func NewGetTransLogsForUserParamsWithHTTPClient(client *http.Client) *GetTransLogsForUserParams

NewGetTransLogsForUserParamsWithHTTPClient creates a new GetTransLogsForUserParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransLogsForUserParamsWithTimeout

func NewGetTransLogsForUserParamsWithTimeout(timeout time.Duration) *GetTransLogsForUserParams

NewGetTransLogsForUserParamsWithTimeout creates a new GetTransLogsForUserParams object with the ability to set a timeout on a request.

func (*GetTransLogsForUserParams) SetContext

func (o *GetTransLogsForUserParams) SetContext(ctx context.Context)

SetContext adds the context to the get trans logs for user params

func (*GetTransLogsForUserParams) SetDefaults

func (o *GetTransLogsForUserParams) SetDefaults()

SetDefaults hydrates default values in the get trans logs for user params (not the query body).

All values with no default are reset to their zero value.

func (*GetTransLogsForUserParams) SetHTTPClient

func (o *GetTransLogsForUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get trans logs for user params

func (*GetTransLogsForUserParams) SetPageend

func (o *GetTransLogsForUserParams) SetPageend(pageend *int64)

SetPageend adds the pageend to the get trans logs for user params

func (*GetTransLogsForUserParams) SetPagestart

func (o *GetTransLogsForUserParams) SetPagestart(pagestart *int64)

SetPagestart adds the pagestart to the get trans logs for user params

func (*GetTransLogsForUserParams) SetTimeout

func (o *GetTransLogsForUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get trans logs for user params

func (*GetTransLogsForUserParams) WithContext

WithContext adds the context to the get trans logs for user params

func (*GetTransLogsForUserParams) WithDefaults

WithDefaults hydrates default values in the get trans logs for user params (not the query body).

All values with no default are reset to their zero value.

func (*GetTransLogsForUserParams) WithHTTPClient

func (o *GetTransLogsForUserParams) WithHTTPClient(client *http.Client) *GetTransLogsForUserParams

WithHTTPClient adds the HTTPClient to the get trans logs for user params

func (*GetTransLogsForUserParams) WithPageend

func (o *GetTransLogsForUserParams) WithPageend(pageend *int64) *GetTransLogsForUserParams

WithPageend adds the pageend to the get trans logs for user params

func (*GetTransLogsForUserParams) WithPagestart

func (o *GetTransLogsForUserParams) WithPagestart(pagestart *int64) *GetTransLogsForUserParams

WithPagestart adds the pagestart to the get trans logs for user params

func (*GetTransLogsForUserParams) WithTimeout

WithTimeout adds the timeout to the get trans logs for user params

func (*GetTransLogsForUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransLogsForUserReader

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

GetTransLogsForUserReader is a Reader for the GetTransLogsForUser structure.

func (*GetTransLogsForUserReader) ReadResponse

func (o *GetTransLogsForUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTransLogsForUserUnauthorized

type GetTransLogsForUserUnauthorized struct {
}

GetTransLogsForUserUnauthorized describes a response with status code 401, with default header values.

User not authenticated

func NewGetTransLogsForUserUnauthorized

func NewGetTransLogsForUserUnauthorized() *GetTransLogsForUserUnauthorized

NewGetTransLogsForUserUnauthorized creates a GetTransLogsForUserUnauthorized with default headers values

func (*GetTransLogsForUserUnauthorized) Error

func (*GetTransLogsForUserUnauthorized) IsClientError

func (o *GetTransLogsForUserUnauthorized) IsClientError() bool

IsClientError returns true when this get trans logs for user unauthorized response has a 4xx status code

func (*GetTransLogsForUserUnauthorized) IsCode

func (o *GetTransLogsForUserUnauthorized) IsCode(code int) bool

IsCode returns true when this get trans logs for user unauthorized response a status code equal to that given

func (*GetTransLogsForUserUnauthorized) IsRedirect

func (o *GetTransLogsForUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this get trans logs for user unauthorized response has a 3xx status code

func (*GetTransLogsForUserUnauthorized) IsServerError

func (o *GetTransLogsForUserUnauthorized) IsServerError() bool

IsServerError returns true when this get trans logs for user unauthorized response has a 5xx status code

func (*GetTransLogsForUserUnauthorized) IsSuccess

func (o *GetTransLogsForUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this get trans logs for user unauthorized response has a 2xx status code

func (*GetTransLogsForUserUnauthorized) String

type UploadInternalServerError

type UploadInternalServerError struct {
}

UploadInternalServerError describes a response with status code 500, with default header values.

Unable to process posted file

func NewUploadInternalServerError

func NewUploadInternalServerError() *UploadInternalServerError

NewUploadInternalServerError creates a UploadInternalServerError with default headers values

func (*UploadInternalServerError) Error

func (o *UploadInternalServerError) Error() string

func (*UploadInternalServerError) IsClientError

func (o *UploadInternalServerError) IsClientError() bool

IsClientError returns true when this upload internal server error response has a 4xx status code

func (*UploadInternalServerError) IsCode

func (o *UploadInternalServerError) IsCode(code int) bool

IsCode returns true when this upload internal server error response a status code equal to that given

func (*UploadInternalServerError) IsRedirect

func (o *UploadInternalServerError) IsRedirect() bool

IsRedirect returns true when this upload internal server error response has a 3xx status code

func (*UploadInternalServerError) IsServerError

func (o *UploadInternalServerError) IsServerError() bool

IsServerError returns true when this upload internal server error response has a 5xx status code

func (*UploadInternalServerError) IsSuccess

func (o *UploadInternalServerError) IsSuccess() bool

IsSuccess returns true when this upload internal server error response has a 2xx status code

func (*UploadInternalServerError) String

func (o *UploadInternalServerError) String() string

type UploadOK

type UploadOK struct {
	Payload *models.UploadResultsResponse
}

UploadOK describes a response with status code 200, with default header values.

Upload successful

func NewUploadOK

func NewUploadOK() *UploadOK

NewUploadOK creates a UploadOK with default headers values

func (*UploadOK) Error

func (o *UploadOK) Error() string

func (*UploadOK) GetPayload

func (o *UploadOK) GetPayload() *models.UploadResultsResponse

func (*UploadOK) IsClientError

func (o *UploadOK) IsClientError() bool

IsClientError returns true when this upload o k response has a 4xx status code

func (*UploadOK) IsCode

func (o *UploadOK) IsCode(code int) bool

IsCode returns true when this upload o k response a status code equal to that given

func (*UploadOK) IsRedirect

func (o *UploadOK) IsRedirect() bool

IsRedirect returns true when this upload o k response has a 3xx status code

func (*UploadOK) IsServerError

func (o *UploadOK) IsServerError() bool

IsServerError returns true when this upload o k response has a 5xx status code

func (*UploadOK) IsSuccess

func (o *UploadOK) IsSuccess() bool

IsSuccess returns true when this upload o k response has a 2xx status code

func (*UploadOK) String

func (o *UploadOK) String() string

type UploadParams

type UploadParams struct {

	/* Donate.

	   Allow commercial use of the file contents - 'on' to allow.
	*/
	Donate *string

	/* File.

	   multipart/form-data file; proper formulation requires both filename and payload.
	*/
	File runtime.NamedReadCloser

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UploadParams contains all the parameters to send to the API endpoint

for the upload operation.

Typically these are written to a http.Request.

func NewUploadParams

func NewUploadParams() *UploadParams

NewUploadParams creates a new UploadParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUploadParamsWithContext

func NewUploadParamsWithContext(ctx context.Context) *UploadParams

NewUploadParamsWithContext creates a new UploadParams object with the ability to set a context for a request.

func NewUploadParamsWithHTTPClient

func NewUploadParamsWithHTTPClient(client *http.Client) *UploadParams

NewUploadParamsWithHTTPClient creates a new UploadParams object with the ability to set a custom HTTPClient for a request.

func NewUploadParamsWithTimeout

func NewUploadParamsWithTimeout(timeout time.Duration) *UploadParams

NewUploadParamsWithTimeout creates a new UploadParams object with the ability to set a timeout on a request.

func (*UploadParams) SetContext

func (o *UploadParams) SetContext(ctx context.Context)

SetContext adds the context to the upload params

func (*UploadParams) SetDefaults

func (o *UploadParams) SetDefaults()

SetDefaults hydrates default values in the upload params (not the query body).

All values with no default are reset to their zero value.

func (*UploadParams) SetDonate

func (o *UploadParams) SetDonate(donate *string)

SetDonate adds the donate to the upload params

func (*UploadParams) SetFile

func (o *UploadParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the upload params

func (*UploadParams) SetHTTPClient

func (o *UploadParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) SetTimeout

func (o *UploadParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload params

func (*UploadParams) WithContext

func (o *UploadParams) WithContext(ctx context.Context) *UploadParams

WithContext adds the context to the upload params

func (*UploadParams) WithDefaults

func (o *UploadParams) WithDefaults() *UploadParams

WithDefaults hydrates default values in the upload params (not the query body).

All values with no default are reset to their zero value.

func (*UploadParams) WithDonate

func (o *UploadParams) WithDonate(donate *string) *UploadParams

WithDonate adds the donate to the upload params

func (*UploadParams) WithFile

func (o *UploadParams) WithFile(file runtime.NamedReadCloser) *UploadParams

WithFile adds the file to the upload params

func (*UploadParams) WithHTTPClient

func (o *UploadParams) WithHTTPClient(client *http.Client) *UploadParams

WithHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) WithTimeout

func (o *UploadParams) WithTimeout(timeout time.Duration) *UploadParams

WithTimeout adds the timeout to the upload params

func (*UploadParams) WriteToRequest

func (o *UploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadReader

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

UploadReader is a Reader for the Upload structure.

func (*UploadReader) ReadResponse

func (o *UploadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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