sovereignty

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GetSovereigntyCampaignsOKBodyItems0EventTypeTcuDefense captures enum value "tcu_defense"
	GetSovereigntyCampaignsOKBodyItems0EventTypeTcuDefense string = "tcu_defense"

	// GetSovereigntyCampaignsOKBodyItems0EventTypeIhubDefense captures enum value "ihub_defense"
	GetSovereigntyCampaignsOKBodyItems0EventTypeIhubDefense string = "ihub_defense"

	// GetSovereigntyCampaignsOKBodyItems0EventTypeStationDefense captures enum value "station_defense"
	GetSovereigntyCampaignsOKBodyItems0EventTypeStationDefense string = "station_defense"

	// GetSovereigntyCampaignsOKBodyItems0EventTypeStationFreeport captures enum value "station_freeport"
	GetSovereigntyCampaignsOKBodyItems0EventTypeStationFreeport string = "station_freeport"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for sovereignty API

func (*Client) GetSovereigntyCampaigns

func (a *Client) GetSovereigntyCampaigns(params *GetSovereigntyCampaignsParams, opts ...ClientOption) (*GetSovereigntyCampaignsOK, error)
GetSovereigntyCampaigns lists sovereignty campaigns

Shows sovereignty data for campaigns.

---

This route is cached for up to 5 seconds

func (*Client) GetSovereigntyMap

func (a *Client) GetSovereigntyMap(params *GetSovereigntyMapParams, opts ...ClientOption) (*GetSovereigntyMapOK, error)
GetSovereigntyMap lists sovereignty of systems

Shows sovereignty information for solar systems

---

This route is cached for up to 3600 seconds

func (*Client) GetSovereigntyStructures

func (a *Client) GetSovereigntyStructures(params *GetSovereigntyStructuresParams, opts ...ClientOption) (*GetSovereigntyStructuresOK, error)
GetSovereigntyStructures lists sovereignty structures

Shows sovereignty data for structures.

---

This route is cached for up to 120 seconds

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.4.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetSovereigntyCampaigns(params *GetSovereigntyCampaignsParams, opts ...ClientOption) (*GetSovereigntyCampaignsOK, error)

	GetSovereigntyMap(params *GetSovereigntyMapParams, opts ...ClientOption) (*GetSovereigntyMapOK, error)

	GetSovereigntyStructures(params *GetSovereigntyStructuresParams, opts ...ClientOption) (*GetSovereigntyStructuresOK, 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 sovereignty API client.

type GetSovereigntyCampaignsBadRequest

type GetSovereigntyCampaignsBadRequest struct {
	Payload *models.BadRequest
}
GetSovereigntyCampaignsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSovereigntyCampaignsBadRequest

func NewGetSovereigntyCampaignsBadRequest() *GetSovereigntyCampaignsBadRequest

NewGetSovereigntyCampaignsBadRequest creates a GetSovereigntyCampaignsBadRequest with default headers values

func (*GetSovereigntyCampaignsBadRequest) Error

func (*GetSovereigntyCampaignsBadRequest) GetPayload

type GetSovereigntyCampaignsEnhanceYourCalm

type GetSovereigntyCampaignsEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}
GetSovereigntyCampaignsEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetSovereigntyCampaignsEnhanceYourCalm

func NewGetSovereigntyCampaignsEnhanceYourCalm() *GetSovereigntyCampaignsEnhanceYourCalm

NewGetSovereigntyCampaignsEnhanceYourCalm creates a GetSovereigntyCampaignsEnhanceYourCalm with default headers values

func (*GetSovereigntyCampaignsEnhanceYourCalm) Error

func (*GetSovereigntyCampaignsEnhanceYourCalm) GetPayload

type GetSovereigntyCampaignsGatewayTimeout

type GetSovereigntyCampaignsGatewayTimeout struct {
	Payload *models.GatewayTimeout
}
GetSovereigntyCampaignsGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetSovereigntyCampaignsGatewayTimeout

func NewGetSovereigntyCampaignsGatewayTimeout() *GetSovereigntyCampaignsGatewayTimeout

NewGetSovereigntyCampaignsGatewayTimeout creates a GetSovereigntyCampaignsGatewayTimeout with default headers values

func (*GetSovereigntyCampaignsGatewayTimeout) Error

func (*GetSovereigntyCampaignsGatewayTimeout) GetPayload

type GetSovereigntyCampaignsInternalServerError

type GetSovereigntyCampaignsInternalServerError struct {
	Payload *models.InternalServerError
}
GetSovereigntyCampaignsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSovereigntyCampaignsInternalServerError

func NewGetSovereigntyCampaignsInternalServerError() *GetSovereigntyCampaignsInternalServerError

NewGetSovereigntyCampaignsInternalServerError creates a GetSovereigntyCampaignsInternalServerError with default headers values

func (*GetSovereigntyCampaignsInternalServerError) Error

func (*GetSovereigntyCampaignsInternalServerError) GetPayload

type GetSovereigntyCampaignsNotModified

type GetSovereigntyCampaignsNotModified struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string
}
GetSovereigntyCampaignsNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetSovereigntyCampaignsNotModified

func NewGetSovereigntyCampaignsNotModified() *GetSovereigntyCampaignsNotModified

NewGetSovereigntyCampaignsNotModified creates a GetSovereigntyCampaignsNotModified with default headers values

func (*GetSovereigntyCampaignsNotModified) Error

type GetSovereigntyCampaignsOK

type GetSovereigntyCampaignsOK struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string

	Payload []*GetSovereigntyCampaignsOKBodyItems0
}
GetSovereigntyCampaignsOK describes a response with status code 200, with default header values.

A list of sovereignty campaigns

func NewGetSovereigntyCampaignsOK

func NewGetSovereigntyCampaignsOK() *GetSovereigntyCampaignsOK

NewGetSovereigntyCampaignsOK creates a GetSovereigntyCampaignsOK with default headers values

func (*GetSovereigntyCampaignsOK) Error

func (o *GetSovereigntyCampaignsOK) Error() string

func (*GetSovereigntyCampaignsOK) GetPayload

type GetSovereigntyCampaignsOKBodyItems0

type GetSovereigntyCampaignsOKBodyItems0 struct {

	// get_sovereignty_campaigns_attackers_score
	//
	// Score for all attacking parties, only present in Defense Events.
	//
	AttackersScore float32 `json:"attackers_score,omitempty"`

	// get_sovereignty_campaigns_campaign_id
	//
	// Unique ID for this campaign.
	// Required: true
	CampaignID *int32 `json:"campaign_id"`

	// get_sovereignty_campaigns_constellation_id
	//
	// The constellation in which the campaign will take place.
	//
	// Required: true
	ConstellationID *int32 `json:"constellation_id"`

	// get_sovereignty_campaigns_defender_id
	//
	// Defending alliance, only present in Defense Events
	//
	DefenderID int32 `json:"defender_id,omitempty"`

	// get_sovereignty_campaigns_defender_score
	//
	// Score for the defending alliance, only present in Defense Events.
	//
	DefenderScore float32 `json:"defender_score,omitempty"`

	// get_sovereignty_campaigns_event_type
	//
	// Type of event this campaign is for. tcu_defense, ihub_defense and station_defense are referred to as "Defense Events", station_freeport as "Freeport Events".
	//
	// Required: true
	// Enum: [tcu_defense ihub_defense station_defense station_freeport]
	EventType *string `json:"event_type"`

	// get_sovereignty_campaigns_participants
	//
	// Alliance participating and their respective scores, only present in Freeport Events.
	//
	// Max Items: 5000
	Participants []*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 `json:"participants"`

	// get_sovereignty_campaigns_solar_system_id
	//
	// The solar system the structure is located in.
	//
	// Required: true
	SolarSystemID *int32 `json:"solar_system_id"`

	// get_sovereignty_campaigns_start_time
	//
	// Time the event is scheduled to start.
	//
	// Required: true
	// Format: date-time
	StartTime *strfmt.DateTime `json:"start_time"`

	// get_sovereignty_campaigns_structure_id
	//
	// The structure item ID that is related to this campaign.
	//
	// Required: true
	StructureID *int64 `json:"structure_id"`
}

GetSovereigntyCampaignsOKBodyItems0 get_sovereignty_campaigns_200_ok // // 200 ok object swagger:model GetSovereigntyCampaignsOKBodyItems0

func (*GetSovereigntyCampaignsOKBodyItems0) ContextValidate added in v0.3.0

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

ContextValidate validate this get sovereignty campaigns o k body items0 based on the context it is used

func (*GetSovereigntyCampaignsOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSovereigntyCampaignsOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSovereigntyCampaignsOKBodyItems0) Validate

Validate validates this get sovereignty campaigns o k body items0

type GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0

type GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 struct {

	// get_sovereignty_campaigns_alliance_id
	//
	// alliance_id integer
	// Required: true
	AllianceID *int32 `json:"alliance_id"`

	// get_sovereignty_campaigns_score
	//
	// score number
	// Required: true
	Score *float32 `json:"score"`
}

GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0 get_sovereignty_campaigns_participant // // participant object swagger:model GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0

func (*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0) ContextValidate added in v0.3.0

ContextValidate validates this get sovereignty campaigns o k body items0 participants items0 based on context it is used

func (*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetSovereigntyCampaignsOKBodyItems0ParticipantsItems0) Validate

Validate validates this get sovereignty campaigns o k body items0 participants items0

type GetSovereigntyCampaignsParams

type GetSovereigntyCampaignsParams struct {

	/* IfNoneMatch.

	   ETag from a previous request. A 304 will be returned if this matches the current ETag
	*/
	IfNoneMatch *string

	/* Datasource.

	   The server name you would like data from

	   Default: "tranquility"
	*/
	Datasource *string

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

GetSovereigntyCampaignsParams contains all the parameters to send to the API endpoint

for the get sovereignty campaigns operation.

Typically these are written to a http.Request.

func NewGetSovereigntyCampaignsParams

func NewGetSovereigntyCampaignsParams() *GetSovereigntyCampaignsParams

NewGetSovereigntyCampaignsParams creates a new GetSovereigntyCampaignsParams 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 NewGetSovereigntyCampaignsParamsWithContext

func NewGetSovereigntyCampaignsParamsWithContext(ctx context.Context) *GetSovereigntyCampaignsParams

NewGetSovereigntyCampaignsParamsWithContext creates a new GetSovereigntyCampaignsParams object with the ability to set a context for a request.

func NewGetSovereigntyCampaignsParamsWithHTTPClient

func NewGetSovereigntyCampaignsParamsWithHTTPClient(client *http.Client) *GetSovereigntyCampaignsParams

NewGetSovereigntyCampaignsParamsWithHTTPClient creates a new GetSovereigntyCampaignsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSovereigntyCampaignsParamsWithTimeout

func NewGetSovereigntyCampaignsParamsWithTimeout(timeout time.Duration) *GetSovereigntyCampaignsParams

NewGetSovereigntyCampaignsParamsWithTimeout creates a new GetSovereigntyCampaignsParams object with the ability to set a timeout on a request.

func (*GetSovereigntyCampaignsParams) SetContext

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

SetContext adds the context to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) SetDatasource

func (o *GetSovereigntyCampaignsParams) SetDatasource(datasource *string)

SetDatasource adds the datasource to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) SetDefaults added in v0.3.0

func (o *GetSovereigntyCampaignsParams) SetDefaults()

SetDefaults hydrates default values in the get sovereignty campaigns params (not the query body).

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

func (*GetSovereigntyCampaignsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) SetIfNoneMatch

func (o *GetSovereigntyCampaignsParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) SetTimeout

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

SetTimeout adds the timeout to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WithContext

WithContext adds the context to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WithDatasource

func (o *GetSovereigntyCampaignsParams) WithDatasource(datasource *string) *GetSovereigntyCampaignsParams

WithDatasource adds the datasource to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the get sovereignty campaigns params (not the query body).

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

func (*GetSovereigntyCampaignsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WithIfNoneMatch

func (o *GetSovereigntyCampaignsParams) WithIfNoneMatch(ifNoneMatch *string) *GetSovereigntyCampaignsParams

WithIfNoneMatch adds the ifNoneMatch to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WithTimeout

WithTimeout adds the timeout to the get sovereignty campaigns params

func (*GetSovereigntyCampaignsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSovereigntyCampaignsReader

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

GetSovereigntyCampaignsReader is a Reader for the GetSovereigntyCampaigns structure.

func (*GetSovereigntyCampaignsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSovereigntyCampaignsServiceUnavailable

type GetSovereigntyCampaignsServiceUnavailable struct {
	Payload *models.ServiceUnavailable
}
GetSovereigntyCampaignsServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetSovereigntyCampaignsServiceUnavailable

func NewGetSovereigntyCampaignsServiceUnavailable() *GetSovereigntyCampaignsServiceUnavailable

NewGetSovereigntyCampaignsServiceUnavailable creates a GetSovereigntyCampaignsServiceUnavailable with default headers values

func (*GetSovereigntyCampaignsServiceUnavailable) Error

func (*GetSovereigntyCampaignsServiceUnavailable) GetPayload

type GetSovereigntyMapBadRequest

type GetSovereigntyMapBadRequest struct {
	Payload *models.BadRequest
}
GetSovereigntyMapBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSovereigntyMapBadRequest

func NewGetSovereigntyMapBadRequest() *GetSovereigntyMapBadRequest

NewGetSovereigntyMapBadRequest creates a GetSovereigntyMapBadRequest with default headers values

func (*GetSovereigntyMapBadRequest) Error

func (*GetSovereigntyMapBadRequest) GetPayload

type GetSovereigntyMapEnhanceYourCalm

type GetSovereigntyMapEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}
GetSovereigntyMapEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetSovereigntyMapEnhanceYourCalm

func NewGetSovereigntyMapEnhanceYourCalm() *GetSovereigntyMapEnhanceYourCalm

NewGetSovereigntyMapEnhanceYourCalm creates a GetSovereigntyMapEnhanceYourCalm with default headers values

func (*GetSovereigntyMapEnhanceYourCalm) Error

func (*GetSovereigntyMapEnhanceYourCalm) GetPayload

type GetSovereigntyMapGatewayTimeout

type GetSovereigntyMapGatewayTimeout struct {
	Payload *models.GatewayTimeout
}
GetSovereigntyMapGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetSovereigntyMapGatewayTimeout

func NewGetSovereigntyMapGatewayTimeout() *GetSovereigntyMapGatewayTimeout

NewGetSovereigntyMapGatewayTimeout creates a GetSovereigntyMapGatewayTimeout with default headers values

func (*GetSovereigntyMapGatewayTimeout) Error

func (*GetSovereigntyMapGatewayTimeout) GetPayload

type GetSovereigntyMapInternalServerError

type GetSovereigntyMapInternalServerError struct {
	Payload *models.InternalServerError
}
GetSovereigntyMapInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSovereigntyMapInternalServerError

func NewGetSovereigntyMapInternalServerError() *GetSovereigntyMapInternalServerError

NewGetSovereigntyMapInternalServerError creates a GetSovereigntyMapInternalServerError with default headers values

func (*GetSovereigntyMapInternalServerError) Error

func (*GetSovereigntyMapInternalServerError) GetPayload

type GetSovereigntyMapNotModified

type GetSovereigntyMapNotModified struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string
}
GetSovereigntyMapNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetSovereigntyMapNotModified

func NewGetSovereigntyMapNotModified() *GetSovereigntyMapNotModified

NewGetSovereigntyMapNotModified creates a GetSovereigntyMapNotModified with default headers values

func (*GetSovereigntyMapNotModified) Error

type GetSovereigntyMapOK

type GetSovereigntyMapOK struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string

	Payload []*GetSovereigntyMapOKBodyItems0
}
GetSovereigntyMapOK describes a response with status code 200, with default header values.

A list of sovereignty information for solar systems in New Eden

func NewGetSovereigntyMapOK

func NewGetSovereigntyMapOK() *GetSovereigntyMapOK

NewGetSovereigntyMapOK creates a GetSovereigntyMapOK with default headers values

func (*GetSovereigntyMapOK) Error

func (o *GetSovereigntyMapOK) Error() string

func (*GetSovereigntyMapOK) GetPayload

type GetSovereigntyMapOKBodyItems0

type GetSovereigntyMapOKBodyItems0 struct {

	// get_sovereignty_map_alliance_id
	//
	// alliance_id integer
	AllianceID int32 `json:"alliance_id,omitempty"`

	// get_sovereignty_map_corporation_id
	//
	// corporation_id integer
	CorporationID int32 `json:"corporation_id,omitempty"`

	// get_sovereignty_map_faction_id
	//
	// faction_id integer
	FactionID int32 `json:"faction_id,omitempty"`

	// get_sovereignty_map_system_id
	//
	// system_id integer
	// Required: true
	SystemID *int32 `json:"system_id"`
}

GetSovereigntyMapOKBodyItems0 get_sovereignty_map_200_ok // // 200 ok object swagger:model GetSovereigntyMapOKBodyItems0

func (*GetSovereigntyMapOKBodyItems0) ContextValidate added in v0.3.0

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

ContextValidate validates this get sovereignty map o k body items0 based on context it is used

func (*GetSovereigntyMapOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSovereigntyMapOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSovereigntyMapOKBodyItems0) Validate

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

Validate validates this get sovereignty map o k body items0

type GetSovereigntyMapParams

type GetSovereigntyMapParams struct {

	/* IfNoneMatch.

	   ETag from a previous request. A 304 will be returned if this matches the current ETag
	*/
	IfNoneMatch *string

	/* Datasource.

	   The server name you would like data from

	   Default: "tranquility"
	*/
	Datasource *string

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

GetSovereigntyMapParams contains all the parameters to send to the API endpoint

for the get sovereignty map operation.

Typically these are written to a http.Request.

func NewGetSovereigntyMapParams

func NewGetSovereigntyMapParams() *GetSovereigntyMapParams

NewGetSovereigntyMapParams creates a new GetSovereigntyMapParams 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 NewGetSovereigntyMapParamsWithContext

func NewGetSovereigntyMapParamsWithContext(ctx context.Context) *GetSovereigntyMapParams

NewGetSovereigntyMapParamsWithContext creates a new GetSovereigntyMapParams object with the ability to set a context for a request.

func NewGetSovereigntyMapParamsWithHTTPClient

func NewGetSovereigntyMapParamsWithHTTPClient(client *http.Client) *GetSovereigntyMapParams

NewGetSovereigntyMapParamsWithHTTPClient creates a new GetSovereigntyMapParams object with the ability to set a custom HTTPClient for a request.

func NewGetSovereigntyMapParamsWithTimeout

func NewGetSovereigntyMapParamsWithTimeout(timeout time.Duration) *GetSovereigntyMapParams

NewGetSovereigntyMapParamsWithTimeout creates a new GetSovereigntyMapParams object with the ability to set a timeout on a request.

func (*GetSovereigntyMapParams) SetContext

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

SetContext adds the context to the get sovereignty map params

func (*GetSovereigntyMapParams) SetDatasource

func (o *GetSovereigntyMapParams) SetDatasource(datasource *string)

SetDatasource adds the datasource to the get sovereignty map params

func (*GetSovereigntyMapParams) SetDefaults added in v0.3.0

func (o *GetSovereigntyMapParams) SetDefaults()

SetDefaults hydrates default values in the get sovereignty map params (not the query body).

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

func (*GetSovereigntyMapParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sovereignty map params

func (*GetSovereigntyMapParams) SetIfNoneMatch

func (o *GetSovereigntyMapParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get sovereignty map params

func (*GetSovereigntyMapParams) SetTimeout

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

SetTimeout adds the timeout to the get sovereignty map params

func (*GetSovereigntyMapParams) WithContext

WithContext adds the context to the get sovereignty map params

func (*GetSovereigntyMapParams) WithDatasource

func (o *GetSovereigntyMapParams) WithDatasource(datasource *string) *GetSovereigntyMapParams

WithDatasource adds the datasource to the get sovereignty map params

func (*GetSovereigntyMapParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the get sovereignty map params (not the query body).

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

func (*GetSovereigntyMapParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sovereignty map params

func (*GetSovereigntyMapParams) WithIfNoneMatch

func (o *GetSovereigntyMapParams) WithIfNoneMatch(ifNoneMatch *string) *GetSovereigntyMapParams

WithIfNoneMatch adds the ifNoneMatch to the get sovereignty map params

func (*GetSovereigntyMapParams) WithTimeout

WithTimeout adds the timeout to the get sovereignty map params

func (*GetSovereigntyMapParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSovereigntyMapReader

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

GetSovereigntyMapReader is a Reader for the GetSovereigntyMap structure.

func (*GetSovereigntyMapReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSovereigntyMapServiceUnavailable

type GetSovereigntyMapServiceUnavailable struct {
	Payload *models.ServiceUnavailable
}
GetSovereigntyMapServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetSovereigntyMapServiceUnavailable

func NewGetSovereigntyMapServiceUnavailable() *GetSovereigntyMapServiceUnavailable

NewGetSovereigntyMapServiceUnavailable creates a GetSovereigntyMapServiceUnavailable with default headers values

func (*GetSovereigntyMapServiceUnavailable) Error

func (*GetSovereigntyMapServiceUnavailable) GetPayload

type GetSovereigntyStructuresBadRequest

type GetSovereigntyStructuresBadRequest struct {
	Payload *models.BadRequest
}
GetSovereigntyStructuresBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSovereigntyStructuresBadRequest

func NewGetSovereigntyStructuresBadRequest() *GetSovereigntyStructuresBadRequest

NewGetSovereigntyStructuresBadRequest creates a GetSovereigntyStructuresBadRequest with default headers values

func (*GetSovereigntyStructuresBadRequest) Error

func (*GetSovereigntyStructuresBadRequest) GetPayload

type GetSovereigntyStructuresEnhanceYourCalm

type GetSovereigntyStructuresEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}
GetSovereigntyStructuresEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetSovereigntyStructuresEnhanceYourCalm

func NewGetSovereigntyStructuresEnhanceYourCalm() *GetSovereigntyStructuresEnhanceYourCalm

NewGetSovereigntyStructuresEnhanceYourCalm creates a GetSovereigntyStructuresEnhanceYourCalm with default headers values

func (*GetSovereigntyStructuresEnhanceYourCalm) Error

func (*GetSovereigntyStructuresEnhanceYourCalm) GetPayload

type GetSovereigntyStructuresGatewayTimeout

type GetSovereigntyStructuresGatewayTimeout struct {
	Payload *models.GatewayTimeout
}
GetSovereigntyStructuresGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetSovereigntyStructuresGatewayTimeout

func NewGetSovereigntyStructuresGatewayTimeout() *GetSovereigntyStructuresGatewayTimeout

NewGetSovereigntyStructuresGatewayTimeout creates a GetSovereigntyStructuresGatewayTimeout with default headers values

func (*GetSovereigntyStructuresGatewayTimeout) Error

func (*GetSovereigntyStructuresGatewayTimeout) GetPayload

type GetSovereigntyStructuresInternalServerError

type GetSovereigntyStructuresInternalServerError struct {
	Payload *models.InternalServerError
}
GetSovereigntyStructuresInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSovereigntyStructuresInternalServerError

func NewGetSovereigntyStructuresInternalServerError() *GetSovereigntyStructuresInternalServerError

NewGetSovereigntyStructuresInternalServerError creates a GetSovereigntyStructuresInternalServerError with default headers values

func (*GetSovereigntyStructuresInternalServerError) Error

func (*GetSovereigntyStructuresInternalServerError) GetPayload

type GetSovereigntyStructuresNotModified

type GetSovereigntyStructuresNotModified struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string
}
GetSovereigntyStructuresNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetSovereigntyStructuresNotModified

func NewGetSovereigntyStructuresNotModified() *GetSovereigntyStructuresNotModified

NewGetSovereigntyStructuresNotModified creates a GetSovereigntyStructuresNotModified with default headers values

func (*GetSovereigntyStructuresNotModified) Error

type GetSovereigntyStructuresOK

type GetSovereigntyStructuresOK struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string

	Payload []*GetSovereigntyStructuresOKBodyItems0
}
GetSovereigntyStructuresOK describes a response with status code 200, with default header values.

A list of sovereignty structures

func NewGetSovereigntyStructuresOK

func NewGetSovereigntyStructuresOK() *GetSovereigntyStructuresOK

NewGetSovereigntyStructuresOK creates a GetSovereigntyStructuresOK with default headers values

func (*GetSovereigntyStructuresOK) Error

func (*GetSovereigntyStructuresOK) GetPayload

type GetSovereigntyStructuresOKBodyItems0

type GetSovereigntyStructuresOKBodyItems0 struct {

	// get_sovereignty_structures_alliance_id
	//
	// The alliance that owns the structure.
	//
	// Required: true
	AllianceID *int32 `json:"alliance_id"`

	// get_sovereignty_structures_solar_system_id
	//
	// Solar system in which the structure is located.
	//
	// Required: true
	SolarSystemID *int32 `json:"solar_system_id"`

	// get_sovereignty_structures_structure_id
	//
	// Unique item ID for this structure.
	// Required: true
	StructureID *int64 `json:"structure_id"`

	// get_sovereignty_structures_structure_type_id
	//
	// A reference to the type of structure this is.
	//
	// Required: true
	StructureTypeID *int32 `json:"structure_type_id"`

	// get_sovereignty_structures_vulnerability_occupancy_level
	//
	// The occupancy level for the next or current vulnerability window. This takes into account all development indexes and capital system bonuses. Also known as Activity Defense Multiplier from in the client. It increases the time that attackers must spend using their entosis links on the structure.
	//
	VulnerabilityOccupancyLevel float32 `json:"vulnerability_occupancy_level,omitempty"`

	// get_sovereignty_structures_vulnerable_end_time
	//
	// The time at which the next or current vulnerability window ends. At the end of a vulnerability window the next window is recalculated and locked in along with the vulnerabilityOccupancyLevel. If the structure is not in 100% entosis control of the defender, it will go in to 'overtime' and stay vulnerable for as long as that situation persists. Only once the defenders have 100% entosis control and has the vulnerableEndTime passed does the vulnerability interval expire and a new one is calculated.
	//
	// Format: date-time
	VulnerableEndTime strfmt.DateTime `json:"vulnerable_end_time,omitempty"`

	// get_sovereignty_structures_vulnerable_start_time
	//
	// The next time at which the structure will become vulnerable. Or the start time of the current window if current time is between this and vulnerableEndTime.
	//
	// Format: date-time
	VulnerableStartTime strfmt.DateTime `json:"vulnerable_start_time,omitempty"`
}

GetSovereigntyStructuresOKBodyItems0 get_sovereignty_structures_200_ok // // 200 ok object swagger:model GetSovereigntyStructuresOKBodyItems0

func (*GetSovereigntyStructuresOKBodyItems0) ContextValidate added in v0.3.0

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

ContextValidate validates this get sovereignty structures o k body items0 based on context it is used

func (*GetSovereigntyStructuresOKBodyItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSovereigntyStructuresOKBodyItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSovereigntyStructuresOKBodyItems0) Validate

Validate validates this get sovereignty structures o k body items0

type GetSovereigntyStructuresParams

type GetSovereigntyStructuresParams struct {

	/* IfNoneMatch.

	   ETag from a previous request. A 304 will be returned if this matches the current ETag
	*/
	IfNoneMatch *string

	/* Datasource.

	   The server name you would like data from

	   Default: "tranquility"
	*/
	Datasource *string

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

GetSovereigntyStructuresParams contains all the parameters to send to the API endpoint

for the get sovereignty structures operation.

Typically these are written to a http.Request.

func NewGetSovereigntyStructuresParams

func NewGetSovereigntyStructuresParams() *GetSovereigntyStructuresParams

NewGetSovereigntyStructuresParams creates a new GetSovereigntyStructuresParams 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 NewGetSovereigntyStructuresParamsWithContext

func NewGetSovereigntyStructuresParamsWithContext(ctx context.Context) *GetSovereigntyStructuresParams

NewGetSovereigntyStructuresParamsWithContext creates a new GetSovereigntyStructuresParams object with the ability to set a context for a request.

func NewGetSovereigntyStructuresParamsWithHTTPClient

func NewGetSovereigntyStructuresParamsWithHTTPClient(client *http.Client) *GetSovereigntyStructuresParams

NewGetSovereigntyStructuresParamsWithHTTPClient creates a new GetSovereigntyStructuresParams object with the ability to set a custom HTTPClient for a request.

func NewGetSovereigntyStructuresParamsWithTimeout

func NewGetSovereigntyStructuresParamsWithTimeout(timeout time.Duration) *GetSovereigntyStructuresParams

NewGetSovereigntyStructuresParamsWithTimeout creates a new GetSovereigntyStructuresParams object with the ability to set a timeout on a request.

func (*GetSovereigntyStructuresParams) SetContext

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

SetContext adds the context to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) SetDatasource

func (o *GetSovereigntyStructuresParams) SetDatasource(datasource *string)

SetDatasource adds the datasource to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) SetDefaults added in v0.3.0

func (o *GetSovereigntyStructuresParams) SetDefaults()

SetDefaults hydrates default values in the get sovereignty structures params (not the query body).

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

func (*GetSovereigntyStructuresParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) SetIfNoneMatch

func (o *GetSovereigntyStructuresParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) SetTimeout

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

SetTimeout adds the timeout to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WithContext

WithContext adds the context to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WithDatasource

WithDatasource adds the datasource to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the get sovereignty structures params (not the query body).

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

func (*GetSovereigntyStructuresParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WithIfNoneMatch

func (o *GetSovereigntyStructuresParams) WithIfNoneMatch(ifNoneMatch *string) *GetSovereigntyStructuresParams

WithIfNoneMatch adds the ifNoneMatch to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WithTimeout

WithTimeout adds the timeout to the get sovereignty structures params

func (*GetSovereigntyStructuresParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSovereigntyStructuresReader

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

GetSovereigntyStructuresReader is a Reader for the GetSovereigntyStructures structure.

func (*GetSovereigntyStructuresReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSovereigntyStructuresServiceUnavailable

type GetSovereigntyStructuresServiceUnavailable struct {
	Payload *models.ServiceUnavailable
}
GetSovereigntyStructuresServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetSovereigntyStructuresServiceUnavailable

func NewGetSovereigntyStructuresServiceUnavailable() *GetSovereigntyStructuresServiceUnavailable

NewGetSovereigntyStructuresServiceUnavailable creates a GetSovereigntyStructuresServiceUnavailable with default headers values

func (*GetSovereigntyStructuresServiceUnavailable) Error

func (*GetSovereigntyStructuresServiceUnavailable) GetPayload

Jump to

Keyboard shortcuts

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