cipherswarm

package module
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MPL-2.0 Imports: 20 Imported by: 2

README

Go API client for cipherswarm

The CypherSwarm Agent API is used to allow agents to connect to the CypherSwarm server.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v1
  • Package version: 0.5.0
  • Generator version: 7.6.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import cipherswarm "github.com/unclesp1d3r/cipherswarm-agent-go-api"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value cipherswarm.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), cipherswarm.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value cipherswarm.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), cipherswarm.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using cipherswarm.ContextOperationServerIndices and cipherswarm.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), cipherswarm.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), cipherswarm.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://www.example.com

Class Method HTTP request Description
AgentsAPI HeartbeatAgent Post /api/v1/client/agents/{id}/heartbeat Send a heartbeat for an agent
AgentsAPI LastBenchmarkAgent Get /api/v1/client/agents/{id}/last_benchmark last_benchmark agent
AgentsAPI ShowAgent Get /api/v1/client/agents/{id} Gets an instance of an agent
AgentsAPI SubmitBenchmarkAgent Post /api/v1/client/agents/{id}/submit_benchmark submit_benchmark agent
AgentsAPI UpdateAgent Put /api/v1/client/agents/{id} Updates the agent
AttacksAPI HashListAttack Get /api/v1/client/attacks/{id}/hash_list Get the hash list
AttacksAPI ShowAttack Get /api/v1/client/attacks/{id} show attack
ClientAPI Authenticate Get /api/v1/client/authenticate Authenticate Client
ClientAPI Configuration Get /api/v1/client/configuration Get Agent Configuration
CrackersAPI CheckForCrackerUpdate Get /api/v1/client/crackers/check_for_cracker_update Check for Cracker Update
TasksAPI AbandonTask Post /api/v1/client/tasks/{id}/abandon Abandon Task
TasksAPI AcceptTask Post /api/v1/client/tasks/{id}/accept_task Accept Task
TasksAPI ExhaustedTask Post /api/v1/client/tasks/{id}/exhausted Notify of Exhausted Task
TasksAPI NewTask Get /api/v1/client/tasks/new Request a new task from server
TasksAPI ShowTask Get /api/v1/client/tasks/{id} Request the task information
TasksAPI SubmitCrack Post /api/v1/client/tasks/{id}/submit_crack Submit a cracked hash result for a task
TasksAPI SubmitStatus Post /api/v1/client/tasks/{id}/submit_status Submit a status update for a task

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer_auth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), cipherswarm.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AgentsAPI *AgentsAPIService

	AttacksAPI *AttacksAPIService

	ClientAPI *ClientAPIService

	CrackersAPI *CrackersAPIService

	TasksAPI *TasksAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the CypherSwarm Agent API API vv1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AdvancedAgentConfiguration

type AdvancedAgentConfiguration struct {
	AgentUpdateInterval NullableInt32  `json:"agent_update_interval"`
	UseNativeHashcat    NullableBool   `json:"use_native_hashcat,omitempty"`
	BackendDevice       NullableString `json:"backend_device,omitempty"`
}

AdvancedAgentConfiguration struct for AdvancedAgentConfiguration

func NewAdvancedAgentConfiguration

func NewAdvancedAgentConfiguration(agentUpdateInterval NullableInt32) *AdvancedAgentConfiguration

NewAdvancedAgentConfiguration instantiates a new AdvancedAgentConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAdvancedAgentConfigurationWithDefaults

func NewAdvancedAgentConfigurationWithDefaults() *AdvancedAgentConfiguration

NewAdvancedAgentConfigurationWithDefaults instantiates a new AdvancedAgentConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AdvancedAgentConfiguration) GetAgentUpdateInterval

func (o *AdvancedAgentConfiguration) GetAgentUpdateInterval() int32

GetAgentUpdateInterval returns the AgentUpdateInterval field value If the value is explicit nil, the zero value for int32 will be returned

func (*AdvancedAgentConfiguration) GetAgentUpdateIntervalOk

func (o *AdvancedAgentConfiguration) GetAgentUpdateIntervalOk() (*int32, bool)

GetAgentUpdateIntervalOk returns a tuple with the AgentUpdateInterval field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AdvancedAgentConfiguration) GetBackendDevice

func (o *AdvancedAgentConfiguration) GetBackendDevice() string

GetBackendDevice returns the BackendDevice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AdvancedAgentConfiguration) GetBackendDeviceOk

func (o *AdvancedAgentConfiguration) GetBackendDeviceOk() (*string, bool)

GetBackendDeviceOk returns a tuple with the BackendDevice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AdvancedAgentConfiguration) GetUseNativeHashcat

func (o *AdvancedAgentConfiguration) GetUseNativeHashcat() bool

GetUseNativeHashcat returns the UseNativeHashcat field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AdvancedAgentConfiguration) GetUseNativeHashcatOk

func (o *AdvancedAgentConfiguration) GetUseNativeHashcatOk() (*bool, bool)

GetUseNativeHashcatOk returns a tuple with the UseNativeHashcat field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AdvancedAgentConfiguration) HasBackendDevice

func (o *AdvancedAgentConfiguration) HasBackendDevice() bool

HasBackendDevice returns a boolean if a field has been set.

func (*AdvancedAgentConfiguration) HasUseNativeHashcat

func (o *AdvancedAgentConfiguration) HasUseNativeHashcat() bool

HasUseNativeHashcat returns a boolean if a field has been set.

func (AdvancedAgentConfiguration) MarshalJSON

func (o AdvancedAgentConfiguration) MarshalJSON() ([]byte, error)

func (*AdvancedAgentConfiguration) SetAgentUpdateInterval

func (o *AdvancedAgentConfiguration) SetAgentUpdateInterval(v int32)

SetAgentUpdateInterval sets field value

func (*AdvancedAgentConfiguration) SetBackendDevice

func (o *AdvancedAgentConfiguration) SetBackendDevice(v string)

SetBackendDevice gets a reference to the given NullableString and assigns it to the BackendDevice field.

func (*AdvancedAgentConfiguration) SetBackendDeviceNil

func (o *AdvancedAgentConfiguration) SetBackendDeviceNil()

SetBackendDeviceNil sets the value for BackendDevice to be an explicit nil

func (*AdvancedAgentConfiguration) SetUseNativeHashcat

func (o *AdvancedAgentConfiguration) SetUseNativeHashcat(v bool)

SetUseNativeHashcat gets a reference to the given NullableBool and assigns it to the UseNativeHashcat field.

func (*AdvancedAgentConfiguration) SetUseNativeHashcatNil

func (o *AdvancedAgentConfiguration) SetUseNativeHashcatNil()

SetUseNativeHashcatNil sets the value for UseNativeHashcat to be an explicit nil

func (AdvancedAgentConfiguration) ToMap

func (o AdvancedAgentConfiguration) ToMap() (map[string]interface{}, error)

func (*AdvancedAgentConfiguration) UnmarshalJSON

func (o *AdvancedAgentConfiguration) UnmarshalJSON(data []byte) (err error)

func (*AdvancedAgentConfiguration) UnsetBackendDevice

func (o *AdvancedAgentConfiguration) UnsetBackendDevice()

UnsetBackendDevice ensures that no value is present for BackendDevice, not even an explicit nil

func (*AdvancedAgentConfiguration) UnsetUseNativeHashcat

func (o *AdvancedAgentConfiguration) UnsetUseNativeHashcat()

UnsetUseNativeHashcat ensures that no value is present for UseNativeHashcat, not even an explicit nil

type Agent

type Agent struct {
	Id                    int64                       `json:"id"`
	Name                  string                      `json:"name"`
	ClientSignature       string                      `json:"client_signature"`
	CommandParameters     NullableString              `json:"command_parameters"`
	CpuOnly               bool                        `json:"cpu_only"`
	Trusted               bool                        `json:"trusted"`
	IgnoreErrors          bool                        `json:"ignore_errors"`
	OperatingSystem       string                      `json:"operating_system"`
	Devices               []string                    `json:"devices"`
	AdvancedConfiguration *AdvancedAgentConfiguration `json:"advanced_configuration,omitempty"`
}

Agent struct for Agent

func NewAgent

func NewAgent(id int64, name string, clientSignature string, commandParameters NullableString, cpuOnly bool, trusted bool, ignoreErrors bool, operatingSystem string, devices []string) *Agent

NewAgent instantiates a new Agent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAgentWithDefaults

func NewAgentWithDefaults() *Agent

NewAgentWithDefaults instantiates a new Agent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Agent) GetAdvancedConfiguration

func (o *Agent) GetAdvancedConfiguration() AdvancedAgentConfiguration

GetAdvancedConfiguration returns the AdvancedConfiguration field value if set, zero value otherwise.

func (*Agent) GetAdvancedConfigurationOk

func (o *Agent) GetAdvancedConfigurationOk() (*AdvancedAgentConfiguration, bool)

GetAdvancedConfigurationOk returns a tuple with the AdvancedConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Agent) GetClientSignature

func (o *Agent) GetClientSignature() string

GetClientSignature returns the ClientSignature field value

func (*Agent) GetClientSignatureOk

func (o *Agent) GetClientSignatureOk() (*string, bool)

GetClientSignatureOk returns a tuple with the ClientSignature field value and a boolean to check if the value has been set.

func (*Agent) GetCommandParameters

func (o *Agent) GetCommandParameters() string

GetCommandParameters returns the CommandParameters field value If the value is explicit nil, the zero value for string will be returned

func (*Agent) GetCommandParametersOk

func (o *Agent) GetCommandParametersOk() (*string, bool)

GetCommandParametersOk returns a tuple with the CommandParameters field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Agent) GetCpuOnly

func (o *Agent) GetCpuOnly() bool

GetCpuOnly returns the CpuOnly field value

func (*Agent) GetCpuOnlyOk

func (o *Agent) GetCpuOnlyOk() (*bool, bool)

GetCpuOnlyOk returns a tuple with the CpuOnly field value and a boolean to check if the value has been set.

func (*Agent) GetDevices

func (o *Agent) GetDevices() []string

GetDevices returns the Devices field value

func (*Agent) GetDevicesOk

func (o *Agent) GetDevicesOk() ([]string, bool)

GetDevicesOk returns a tuple with the Devices field value and a boolean to check if the value has been set.

func (*Agent) GetId

func (o *Agent) GetId() int64

GetId returns the Id field value

func (*Agent) GetIdOk

func (o *Agent) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Agent) GetIgnoreErrors

func (o *Agent) GetIgnoreErrors() bool

GetIgnoreErrors returns the IgnoreErrors field value

func (*Agent) GetIgnoreErrorsOk

func (o *Agent) GetIgnoreErrorsOk() (*bool, bool)

GetIgnoreErrorsOk returns a tuple with the IgnoreErrors field value and a boolean to check if the value has been set.

func (*Agent) GetName

func (o *Agent) GetName() string

GetName returns the Name field value

func (*Agent) GetNameOk

func (o *Agent) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Agent) GetOperatingSystem

func (o *Agent) GetOperatingSystem() string

GetOperatingSystem returns the OperatingSystem field value

func (*Agent) GetOperatingSystemOk

func (o *Agent) GetOperatingSystemOk() (*string, bool)

GetOperatingSystemOk returns a tuple with the OperatingSystem field value and a boolean to check if the value has been set.

func (*Agent) GetTrusted

func (o *Agent) GetTrusted() bool

GetTrusted returns the Trusted field value

func (*Agent) GetTrustedOk

func (o *Agent) GetTrustedOk() (*bool, bool)

GetTrustedOk returns a tuple with the Trusted field value and a boolean to check if the value has been set.

func (*Agent) HasAdvancedConfiguration

func (o *Agent) HasAdvancedConfiguration() bool

HasAdvancedConfiguration returns a boolean if a field has been set.

func (Agent) MarshalJSON

func (o Agent) MarshalJSON() ([]byte, error)

func (*Agent) SetAdvancedConfiguration

func (o *Agent) SetAdvancedConfiguration(v AdvancedAgentConfiguration)

SetAdvancedConfiguration gets a reference to the given AdvancedAgentConfiguration and assigns it to the AdvancedConfiguration field.

func (*Agent) SetClientSignature

func (o *Agent) SetClientSignature(v string)

SetClientSignature sets field value

func (*Agent) SetCommandParameters

func (o *Agent) SetCommandParameters(v string)

SetCommandParameters sets field value

func (*Agent) SetCpuOnly

func (o *Agent) SetCpuOnly(v bool)

SetCpuOnly sets field value

func (*Agent) SetDevices

func (o *Agent) SetDevices(v []string)

SetDevices sets field value

func (*Agent) SetId

func (o *Agent) SetId(v int64)

SetId sets field value

func (*Agent) SetIgnoreErrors

func (o *Agent) SetIgnoreErrors(v bool)

SetIgnoreErrors sets field value

func (*Agent) SetName

func (o *Agent) SetName(v string)

SetName sets field value

func (*Agent) SetOperatingSystem

func (o *Agent) SetOperatingSystem(v string)

SetOperatingSystem sets field value

func (*Agent) SetTrusted

func (o *Agent) SetTrusted(v bool)

SetTrusted sets field value

func (Agent) ToMap

func (o Agent) ToMap() (map[string]interface{}, error)

func (*Agent) UnmarshalJSON

func (o *Agent) UnmarshalJSON(data []byte) (err error)

type AgentConfiguration added in v0.1.11

type AgentConfiguration struct {
	Config     AdvancedAgentConfiguration `json:"config"`
	ApiVersion int32                      `json:"api_version"`
}

AgentConfiguration struct for AgentConfiguration

func NewAgentConfiguration added in v0.1.11

func NewAgentConfiguration(config AdvancedAgentConfiguration, apiVersion int32) *AgentConfiguration

NewAgentConfiguration instantiates a new AgentConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAgentConfigurationWithDefaults added in v0.1.11

func NewAgentConfigurationWithDefaults() *AgentConfiguration

NewAgentConfigurationWithDefaults instantiates a new AgentConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AgentConfiguration) GetApiVersion added in v0.1.11

func (o *AgentConfiguration) GetApiVersion() int32

GetApiVersion returns the ApiVersion field value

func (*AgentConfiguration) GetApiVersionOk added in v0.1.11

func (o *AgentConfiguration) GetApiVersionOk() (*int32, bool)

GetApiVersionOk returns a tuple with the ApiVersion field value and a boolean to check if the value has been set.

func (*AgentConfiguration) GetConfig added in v0.1.11

GetConfig returns the Config field value

func (*AgentConfiguration) GetConfigOk added in v0.1.11

func (o *AgentConfiguration) GetConfigOk() (*AdvancedAgentConfiguration, bool)

GetConfigOk returns a tuple with the Config field value and a boolean to check if the value has been set.

func (AgentConfiguration) MarshalJSON added in v0.1.11

func (o AgentConfiguration) MarshalJSON() ([]byte, error)

func (*AgentConfiguration) SetApiVersion added in v0.1.11

func (o *AgentConfiguration) SetApiVersion(v int32)

SetApiVersion sets field value

func (*AgentConfiguration) SetConfig added in v0.1.11

SetConfig sets field value

func (AgentConfiguration) ToMap added in v0.1.11

func (o AgentConfiguration) ToMap() (map[string]interface{}, error)

func (*AgentConfiguration) UnmarshalJSON added in v0.1.11

func (o *AgentConfiguration) UnmarshalJSON(data []byte) (err error)

type AgentLastBenchmark

type AgentLastBenchmark struct {
	LastBenchmarkDate time.Time `json:"last_benchmark_date"`
}

AgentLastBenchmark struct for AgentLastBenchmark

func NewAgentLastBenchmark

func NewAgentLastBenchmark(lastBenchmarkDate time.Time) *AgentLastBenchmark

NewAgentLastBenchmark instantiates a new AgentLastBenchmark object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAgentLastBenchmarkWithDefaults

func NewAgentLastBenchmarkWithDefaults() *AgentLastBenchmark

NewAgentLastBenchmarkWithDefaults instantiates a new AgentLastBenchmark object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AgentLastBenchmark) GetLastBenchmarkDate

func (o *AgentLastBenchmark) GetLastBenchmarkDate() time.Time

GetLastBenchmarkDate returns the LastBenchmarkDate field value

func (*AgentLastBenchmark) GetLastBenchmarkDateOk

func (o *AgentLastBenchmark) GetLastBenchmarkDateOk() (*time.Time, bool)

GetLastBenchmarkDateOk returns a tuple with the LastBenchmarkDate field value and a boolean to check if the value has been set.

func (AgentLastBenchmark) MarshalJSON

func (o AgentLastBenchmark) MarshalJSON() ([]byte, error)

func (*AgentLastBenchmark) SetLastBenchmarkDate

func (o *AgentLastBenchmark) SetLastBenchmarkDate(v time.Time)

SetLastBenchmarkDate sets field value

func (AgentLastBenchmark) ToMap

func (o AgentLastBenchmark) ToMap() (map[string]interface{}, error)

func (*AgentLastBenchmark) UnmarshalJSON

func (o *AgentLastBenchmark) UnmarshalJSON(data []byte) (err error)

type AgentUpdate

type AgentUpdate struct {
	Id              int64    `json:"id"`
	Name            string   `json:"name"`
	ClientSignature string   `json:"client_signature"`
	OperatingSystem string   `json:"operating_system"`
	Devices         []string `json:"devices"`
}

AgentUpdate struct for AgentUpdate

func NewAgentUpdate

func NewAgentUpdate(id int64, name string, clientSignature string, operatingSystem string, devices []string) *AgentUpdate

NewAgentUpdate instantiates a new AgentUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAgentUpdateWithDefaults

func NewAgentUpdateWithDefaults() *AgentUpdate

NewAgentUpdateWithDefaults instantiates a new AgentUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AgentUpdate) GetClientSignature

func (o *AgentUpdate) GetClientSignature() string

GetClientSignature returns the ClientSignature field value

func (*AgentUpdate) GetClientSignatureOk

func (o *AgentUpdate) GetClientSignatureOk() (*string, bool)

GetClientSignatureOk returns a tuple with the ClientSignature field value and a boolean to check if the value has been set.

func (*AgentUpdate) GetDevices

func (o *AgentUpdate) GetDevices() []string

GetDevices returns the Devices field value

func (*AgentUpdate) GetDevicesOk

func (o *AgentUpdate) GetDevicesOk() ([]string, bool)

GetDevicesOk returns a tuple with the Devices field value and a boolean to check if the value has been set.

func (*AgentUpdate) GetId

func (o *AgentUpdate) GetId() int64

GetId returns the Id field value

func (*AgentUpdate) GetIdOk

func (o *AgentUpdate) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AgentUpdate) GetName

func (o *AgentUpdate) GetName() string

GetName returns the Name field value

func (*AgentUpdate) GetNameOk

func (o *AgentUpdate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*AgentUpdate) GetOperatingSystem

func (o *AgentUpdate) GetOperatingSystem() string

GetOperatingSystem returns the OperatingSystem field value

func (*AgentUpdate) GetOperatingSystemOk

func (o *AgentUpdate) GetOperatingSystemOk() (*string, bool)

GetOperatingSystemOk returns a tuple with the OperatingSystem field value and a boolean to check if the value has been set.

func (AgentUpdate) MarshalJSON

func (o AgentUpdate) MarshalJSON() ([]byte, error)

func (*AgentUpdate) SetClientSignature

func (o *AgentUpdate) SetClientSignature(v string)

SetClientSignature sets field value

func (*AgentUpdate) SetDevices

func (o *AgentUpdate) SetDevices(v []string)

SetDevices sets field value

func (*AgentUpdate) SetId

func (o *AgentUpdate) SetId(v int64)

SetId sets field value

func (*AgentUpdate) SetName

func (o *AgentUpdate) SetName(v string)

SetName sets field value

func (*AgentUpdate) SetOperatingSystem

func (o *AgentUpdate) SetOperatingSystem(v string)

SetOperatingSystem sets field value

func (AgentUpdate) ToMap

func (o AgentUpdate) ToMap() (map[string]interface{}, error)

func (*AgentUpdate) UnmarshalJSON

func (o *AgentUpdate) UnmarshalJSON(data []byte) (err error)

type AgentsAPIService

type AgentsAPIService service

AgentsAPIService AgentsAPI service

func (*AgentsAPIService) HeartbeatAgent

func (a *AgentsAPIService) HeartbeatAgent(ctx context.Context, id int64) ApiHeartbeatAgentRequest

HeartbeatAgent Send a heartbeat for an agent

Send a heartbeat for an agent to keep it alive.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiHeartbeatAgentRequest

func (*AgentsAPIService) HeartbeatAgentExecute

func (a *AgentsAPIService) HeartbeatAgentExecute(r ApiHeartbeatAgentRequest) (*http.Response, error)

Execute executes the request

func (*AgentsAPIService) LastBenchmarkAgent

func (a *AgentsAPIService) LastBenchmarkAgent(ctx context.Context, id int64) ApiLastBenchmarkAgentRequest

LastBenchmarkAgent last_benchmark agent

Returns the last benchmark date for an agent

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiLastBenchmarkAgentRequest

func (*AgentsAPIService) LastBenchmarkAgentExecute

Execute executes the request

@return AgentLastBenchmark

func (*AgentsAPIService) ShowAgent

ShowAgent Gets an instance of an agent

Returns an agent

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiShowAgentRequest

func (*AgentsAPIService) ShowAgentExecute

func (a *AgentsAPIService) ShowAgentExecute(r ApiShowAgentRequest) (*Agent, *http.Response, error)

Execute executes the request

@return Agent

func (*AgentsAPIService) SubmitBenchmarkAgent

func (a *AgentsAPIService) SubmitBenchmarkAgent(ctx context.Context, id int64) ApiSubmitBenchmarkAgentRequest

SubmitBenchmarkAgent submit_benchmark agent

Submit a benchmark for an agent

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiSubmitBenchmarkAgentRequest

func (*AgentsAPIService) SubmitBenchmarkAgentExecute

func (a *AgentsAPIService) SubmitBenchmarkAgentExecute(r ApiSubmitBenchmarkAgentRequest) (*http.Response, error)

Execute executes the request

func (*AgentsAPIService) UpdateAgent

UpdateAgent Updates the agent

Updates an agent

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiUpdateAgentRequest

func (*AgentsAPIService) UpdateAgentExecute

func (a *AgentsAPIService) UpdateAgentExecute(r ApiUpdateAgentRequest) (*Agent, *http.Response, error)

Execute executes the request

@return Agent

type ApiAbandonTaskRequest

type ApiAbandonTaskRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiAbandonTaskRequest) Execute

func (r ApiAbandonTaskRequest) Execute() (*http.Response, error)

type ApiAcceptTaskRequest

type ApiAcceptTaskRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiAcceptTaskRequest) Execute

func (r ApiAcceptTaskRequest) Execute() (*http.Response, error)

type ApiAuthenticateRequest

type ApiAuthenticateRequest struct {
	ApiService *ClientAPIService
	// contains filtered or unexported fields
}

func (ApiAuthenticateRequest) Execute

type ApiCheckForCrackerUpdateRequest

type ApiCheckForCrackerUpdateRequest struct {
	ApiService *CrackersAPIService
	// contains filtered or unexported fields
}

func (ApiCheckForCrackerUpdateRequest) Execute

func (ApiCheckForCrackerUpdateRequest) OperatingSystem

func (r ApiCheckForCrackerUpdateRequest) OperatingSystem(operatingSystem string) ApiCheckForCrackerUpdateRequest

operating_system

func (ApiCheckForCrackerUpdateRequest) Version

version

type ApiConfigurationRequest

type ApiConfigurationRequest struct {
	ApiService *ClientAPIService
	// contains filtered or unexported fields
}

func (ApiConfigurationRequest) Execute

type ApiExhaustedTaskRequest

type ApiExhaustedTaskRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiExhaustedTaskRequest) Execute

func (r ApiExhaustedTaskRequest) Execute() (*http.Response, error)

type ApiHashListAttackRequest

type ApiHashListAttackRequest struct {
	ApiService *AttacksAPIService
	// contains filtered or unexported fields
}

func (ApiHashListAttackRequest) Execute

func (r ApiHashListAttackRequest) Execute() (*os.File, *http.Response, error)

type ApiHeartbeatAgentRequest

type ApiHeartbeatAgentRequest struct {
	ApiService *AgentsAPIService
	// contains filtered or unexported fields
}

func (ApiHeartbeatAgentRequest) Execute

func (r ApiHeartbeatAgentRequest) Execute() (*http.Response, error)

type ApiLastBenchmarkAgentRequest

type ApiLastBenchmarkAgentRequest struct {
	ApiService *AgentsAPIService
	// contains filtered or unexported fields
}

func (ApiLastBenchmarkAgentRequest) Execute

type ApiNewTaskRequest

type ApiNewTaskRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiNewTaskRequest) Execute

func (r ApiNewTaskRequest) Execute() (*Task, *http.Response, error)

type ApiShowAgentRequest

type ApiShowAgentRequest struct {
	ApiService *AgentsAPIService
	// contains filtered or unexported fields
}

func (ApiShowAgentRequest) Execute

func (r ApiShowAgentRequest) Execute() (*Agent, *http.Response, error)

type ApiShowAttackRequest

type ApiShowAttackRequest struct {
	ApiService *AttacksAPIService
	// contains filtered or unexported fields
}

func (ApiShowAttackRequest) Execute

func (r ApiShowAttackRequest) Execute() (*Attack, *http.Response, error)

type ApiShowTaskRequest

type ApiShowTaskRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiShowTaskRequest) Execute

func (r ApiShowTaskRequest) Execute() (*Task, *http.Response, error)

type ApiSubmitBenchmarkAgentRequest

type ApiSubmitBenchmarkAgentRequest struct {
	ApiService *AgentsAPIService
	// contains filtered or unexported fields
}

func (ApiSubmitBenchmarkAgentRequest) Execute

func (ApiSubmitBenchmarkAgentRequest) HashcatBenchmark

type ApiSubmitCrackRequest

type ApiSubmitCrackRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiSubmitCrackRequest) Execute

func (r ApiSubmitCrackRequest) Execute() (*http.Response, error)

func (ApiSubmitCrackRequest) HashcatResult

func (r ApiSubmitCrackRequest) HashcatResult(hashcatResult HashcatResult) ApiSubmitCrackRequest

type ApiSubmitStatusRequest

type ApiSubmitStatusRequest struct {
	ApiService *TasksAPIService
	// contains filtered or unexported fields
}

func (ApiSubmitStatusRequest) Execute

func (r ApiSubmitStatusRequest) Execute() (*http.Response, error)

func (ApiSubmitStatusRequest) TaskStatus

func (r ApiSubmitStatusRequest) TaskStatus(taskStatus TaskStatus) ApiSubmitStatusRequest

status

type ApiUpdateAgentRequest

type ApiUpdateAgentRequest struct {
	ApiService *AgentsAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateAgentRequest) AgentUpdate

func (r ApiUpdateAgentRequest) AgentUpdate(agentUpdate AgentUpdate) ApiUpdateAgentRequest

func (ApiUpdateAgentRequest) Execute

func (r ApiUpdateAgentRequest) Execute() (*Agent, *http.Response, error)

type Attack

type Attack struct {
	Id                      int64                `json:"id"`
	AttackMode              string               `json:"attack_mode"`
	Mask                    *string              `json:"mask,omitempty"`
	IncrementMode           *bool                `json:"increment_mode,omitempty"`
	IncrementMinimum        NullableInt32        `json:"increment_minimum,omitempty"`
	IncrementMaximum        NullableInt32        `json:"increment_maximum,omitempty"`
	Optimized               bool                 `json:"optimized"`
	SlowCandidateGenerators bool                 `json:"slow_candidate_generators"`
	WorkloadProfile         int32                `json:"workload_profile"`
	DisableMarkov           *bool                `json:"disable_markov,omitempty"`
	ClassicMarkov           *bool                `json:"classic_markov,omitempty"`
	MarkovThreshold         *int32               `json:"markov_threshold,omitempty"`
	LeftRule                NullableString       `json:"left_rule,omitempty"`
	RightRule               NullableString       `json:"right_rule,omitempty"`
	CustomCharset1          NullableString       `json:"custom_charset_1,omitempty"`
	CustomCharset2          NullableString       `json:"custom_charset_2,omitempty"`
	CustomCharset3          NullableString       `json:"custom_charset_3,omitempty"`
	CustomCharset4          NullableString       `json:"custom_charset_4,omitempty"`
	HashListId              int64                `json:"hash_list_id"`
	WordLists               []AttackResourceFile `json:"word_lists,omitempty"`
	RuleLists               []AttackResourceFile `json:"rule_lists,omitempty"`
	HashMode                int32                `json:"hash_mode"`
	HashListUrl             *string              `json:"hash_list_url,omitempty"`
	HashListChecksum        *string              `json:"hash_list_checksum,omitempty"`
	Url                     string               `json:"url"`
}

Attack struct for Attack

func NewAttack

func NewAttack(id int64, attackMode string, optimized bool, slowCandidateGenerators bool, workloadProfile int32, hashListId int64, hashMode int32, url string) *Attack

NewAttack instantiates a new Attack object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAttackWithDefaults

func NewAttackWithDefaults() *Attack

NewAttackWithDefaults instantiates a new Attack object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Attack) GetAttackMode

func (o *Attack) GetAttackMode() string

GetAttackMode returns the AttackMode field value

func (*Attack) GetAttackModeOk

func (o *Attack) GetAttackModeOk() (*string, bool)

GetAttackModeOk returns a tuple with the AttackMode field value and a boolean to check if the value has been set.

func (*Attack) GetClassicMarkov

func (o *Attack) GetClassicMarkov() bool

GetClassicMarkov returns the ClassicMarkov field value if set, zero value otherwise.

func (*Attack) GetClassicMarkovOk

func (o *Attack) GetClassicMarkovOk() (*bool, bool)

GetClassicMarkovOk returns a tuple with the ClassicMarkov field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetCustomCharset1

func (o *Attack) GetCustomCharset1() string

GetCustomCharset1 returns the CustomCharset1 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetCustomCharset1Ok

func (o *Attack) GetCustomCharset1Ok() (*string, bool)

GetCustomCharset1Ok returns a tuple with the CustomCharset1 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetCustomCharset2

func (o *Attack) GetCustomCharset2() string

GetCustomCharset2 returns the CustomCharset2 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetCustomCharset2Ok

func (o *Attack) GetCustomCharset2Ok() (*string, bool)

GetCustomCharset2Ok returns a tuple with the CustomCharset2 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetCustomCharset3

func (o *Attack) GetCustomCharset3() string

GetCustomCharset3 returns the CustomCharset3 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetCustomCharset3Ok

func (o *Attack) GetCustomCharset3Ok() (*string, bool)

GetCustomCharset3Ok returns a tuple with the CustomCharset3 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetCustomCharset4

func (o *Attack) GetCustomCharset4() string

GetCustomCharset4 returns the CustomCharset4 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetCustomCharset4Ok

func (o *Attack) GetCustomCharset4Ok() (*string, bool)

GetCustomCharset4Ok returns a tuple with the CustomCharset4 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetDisableMarkov

func (o *Attack) GetDisableMarkov() bool

GetDisableMarkov returns the DisableMarkov field value if set, zero value otherwise.

func (*Attack) GetDisableMarkovOk

func (o *Attack) GetDisableMarkovOk() (*bool, bool)

GetDisableMarkovOk returns a tuple with the DisableMarkov field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetHashListChecksum

func (o *Attack) GetHashListChecksum() string

GetHashListChecksum returns the HashListChecksum field value if set, zero value otherwise.

func (*Attack) GetHashListChecksumOk

func (o *Attack) GetHashListChecksumOk() (*string, bool)

GetHashListChecksumOk returns a tuple with the HashListChecksum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetHashListId

func (o *Attack) GetHashListId() int64

GetHashListId returns the HashListId field value

func (*Attack) GetHashListIdOk

func (o *Attack) GetHashListIdOk() (*int64, bool)

GetHashListIdOk returns a tuple with the HashListId field value and a boolean to check if the value has been set.

func (*Attack) GetHashListUrl

func (o *Attack) GetHashListUrl() string

GetHashListUrl returns the HashListUrl field value if set, zero value otherwise.

func (*Attack) GetHashListUrlOk

func (o *Attack) GetHashListUrlOk() (*string, bool)

GetHashListUrlOk returns a tuple with the HashListUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetHashMode

func (o *Attack) GetHashMode() int32

GetHashMode returns the HashMode field value

func (*Attack) GetHashModeOk

func (o *Attack) GetHashModeOk() (*int32, bool)

GetHashModeOk returns a tuple with the HashMode field value and a boolean to check if the value has been set.

func (*Attack) GetId

func (o *Attack) GetId() int64

GetId returns the Id field value

func (*Attack) GetIdOk

func (o *Attack) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Attack) GetIncrementMaximum

func (o *Attack) GetIncrementMaximum() int32

GetIncrementMaximum returns the IncrementMaximum field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetIncrementMaximumOk

func (o *Attack) GetIncrementMaximumOk() (*int32, bool)

GetIncrementMaximumOk returns a tuple with the IncrementMaximum field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetIncrementMinimum

func (o *Attack) GetIncrementMinimum() int32

GetIncrementMinimum returns the IncrementMinimum field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetIncrementMinimumOk

func (o *Attack) GetIncrementMinimumOk() (*int32, bool)

GetIncrementMinimumOk returns a tuple with the IncrementMinimum field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetIncrementMode

func (o *Attack) GetIncrementMode() bool

GetIncrementMode returns the IncrementMode field value if set, zero value otherwise.

func (*Attack) GetIncrementModeOk

func (o *Attack) GetIncrementModeOk() (*bool, bool)

GetIncrementModeOk returns a tuple with the IncrementMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetLeftRule

func (o *Attack) GetLeftRule() string

GetLeftRule returns the LeftRule field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetLeftRuleOk

func (o *Attack) GetLeftRuleOk() (*string, bool)

GetLeftRuleOk returns a tuple with the LeftRule field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetMarkovThreshold

func (o *Attack) GetMarkovThreshold() int32

GetMarkovThreshold returns the MarkovThreshold field value if set, zero value otherwise.

func (*Attack) GetMarkovThresholdOk

func (o *Attack) GetMarkovThresholdOk() (*int32, bool)

GetMarkovThresholdOk returns a tuple with the MarkovThreshold field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetMask

func (o *Attack) GetMask() string

GetMask returns the Mask field value if set, zero value otherwise.

func (*Attack) GetMaskOk

func (o *Attack) GetMaskOk() (*string, bool)

GetMaskOk returns a tuple with the Mask field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetOptimized

func (o *Attack) GetOptimized() bool

GetOptimized returns the Optimized field value

func (*Attack) GetOptimizedOk

func (o *Attack) GetOptimizedOk() (*bool, bool)

GetOptimizedOk returns a tuple with the Optimized field value and a boolean to check if the value has been set.

func (*Attack) GetRightRule

func (o *Attack) GetRightRule() string

GetRightRule returns the RightRule field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Attack) GetRightRuleOk

func (o *Attack) GetRightRuleOk() (*string, bool)

GetRightRuleOk returns a tuple with the RightRule field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Attack) GetRuleLists

func (o *Attack) GetRuleLists() []AttackResourceFile

GetRuleLists returns the RuleLists field value if set, zero value otherwise.

func (*Attack) GetRuleListsOk

func (o *Attack) GetRuleListsOk() ([]AttackResourceFile, bool)

GetRuleListsOk returns a tuple with the RuleLists field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetSlowCandidateGenerators

func (o *Attack) GetSlowCandidateGenerators() bool

GetSlowCandidateGenerators returns the SlowCandidateGenerators field value

func (*Attack) GetSlowCandidateGeneratorsOk

func (o *Attack) GetSlowCandidateGeneratorsOk() (*bool, bool)

GetSlowCandidateGeneratorsOk returns a tuple with the SlowCandidateGenerators field value and a boolean to check if the value has been set.

func (*Attack) GetUrl

func (o *Attack) GetUrl() string

GetUrl returns the Url field value

func (*Attack) GetUrlOk

func (o *Attack) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*Attack) GetWordLists

func (o *Attack) GetWordLists() []AttackResourceFile

GetWordLists returns the WordLists field value if set, zero value otherwise.

func (*Attack) GetWordListsOk

func (o *Attack) GetWordListsOk() ([]AttackResourceFile, bool)

GetWordListsOk returns a tuple with the WordLists field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Attack) GetWorkloadProfile

func (o *Attack) GetWorkloadProfile() int32

GetWorkloadProfile returns the WorkloadProfile field value

func (*Attack) GetWorkloadProfileOk

func (o *Attack) GetWorkloadProfileOk() (*int32, bool)

GetWorkloadProfileOk returns a tuple with the WorkloadProfile field value and a boolean to check if the value has been set.

func (*Attack) HasClassicMarkov

func (o *Attack) HasClassicMarkov() bool

HasClassicMarkov returns a boolean if a field has been set.

func (*Attack) HasCustomCharset1

func (o *Attack) HasCustomCharset1() bool

HasCustomCharset1 returns a boolean if a field has been set.

func (*Attack) HasCustomCharset2

func (o *Attack) HasCustomCharset2() bool

HasCustomCharset2 returns a boolean if a field has been set.

func (*Attack) HasCustomCharset3

func (o *Attack) HasCustomCharset3() bool

HasCustomCharset3 returns a boolean if a field has been set.

func (*Attack) HasCustomCharset4

func (o *Attack) HasCustomCharset4() bool

HasCustomCharset4 returns a boolean if a field has been set.

func (*Attack) HasDisableMarkov

func (o *Attack) HasDisableMarkov() bool

HasDisableMarkov returns a boolean if a field has been set.

func (*Attack) HasHashListChecksum

func (o *Attack) HasHashListChecksum() bool

HasHashListChecksum returns a boolean if a field has been set.

func (*Attack) HasHashListUrl

func (o *Attack) HasHashListUrl() bool

HasHashListUrl returns a boolean if a field has been set.

func (*Attack) HasIncrementMaximum

func (o *Attack) HasIncrementMaximum() bool

HasIncrementMaximum returns a boolean if a field has been set.

func (*Attack) HasIncrementMinimum

func (o *Attack) HasIncrementMinimum() bool

HasIncrementMinimum returns a boolean if a field has been set.

func (*Attack) HasIncrementMode

func (o *Attack) HasIncrementMode() bool

HasIncrementMode returns a boolean if a field has been set.

func (*Attack) HasLeftRule

func (o *Attack) HasLeftRule() bool

HasLeftRule returns a boolean if a field has been set.

func (*Attack) HasMarkovThreshold

func (o *Attack) HasMarkovThreshold() bool

HasMarkovThreshold returns a boolean if a field has been set.

func (*Attack) HasMask

func (o *Attack) HasMask() bool

HasMask returns a boolean if a field has been set.

func (*Attack) HasRightRule

func (o *Attack) HasRightRule() bool

HasRightRule returns a boolean if a field has been set.

func (*Attack) HasRuleLists

func (o *Attack) HasRuleLists() bool

HasRuleLists returns a boolean if a field has been set.

func (*Attack) HasWordLists

func (o *Attack) HasWordLists() bool

HasWordLists returns a boolean if a field has been set.

func (Attack) MarshalJSON

func (o Attack) MarshalJSON() ([]byte, error)

func (*Attack) SetAttackMode

func (o *Attack) SetAttackMode(v string)

SetAttackMode sets field value

func (*Attack) SetClassicMarkov

func (o *Attack) SetClassicMarkov(v bool)

SetClassicMarkov gets a reference to the given bool and assigns it to the ClassicMarkov field.

func (*Attack) SetCustomCharset1

func (o *Attack) SetCustomCharset1(v string)

SetCustomCharset1 gets a reference to the given NullableString and assigns it to the CustomCharset1 field.

func (*Attack) SetCustomCharset1Nil

func (o *Attack) SetCustomCharset1Nil()

SetCustomCharset1Nil sets the value for CustomCharset1 to be an explicit nil

func (*Attack) SetCustomCharset2

func (o *Attack) SetCustomCharset2(v string)

SetCustomCharset2 gets a reference to the given NullableString and assigns it to the CustomCharset2 field.

func (*Attack) SetCustomCharset2Nil

func (o *Attack) SetCustomCharset2Nil()

SetCustomCharset2Nil sets the value for CustomCharset2 to be an explicit nil

func (*Attack) SetCustomCharset3

func (o *Attack) SetCustomCharset3(v string)

SetCustomCharset3 gets a reference to the given NullableString and assigns it to the CustomCharset3 field.

func (*Attack) SetCustomCharset3Nil

func (o *Attack) SetCustomCharset3Nil()

SetCustomCharset3Nil sets the value for CustomCharset3 to be an explicit nil

func (*Attack) SetCustomCharset4

func (o *Attack) SetCustomCharset4(v string)

SetCustomCharset4 gets a reference to the given NullableString and assigns it to the CustomCharset4 field.

func (*Attack) SetCustomCharset4Nil

func (o *Attack) SetCustomCharset4Nil()

SetCustomCharset4Nil sets the value for CustomCharset4 to be an explicit nil

func (*Attack) SetDisableMarkov

func (o *Attack) SetDisableMarkov(v bool)

SetDisableMarkov gets a reference to the given bool and assigns it to the DisableMarkov field.

func (*Attack) SetHashListChecksum

func (o *Attack) SetHashListChecksum(v string)

SetHashListChecksum gets a reference to the given string and assigns it to the HashListChecksum field.

func (*Attack) SetHashListId

func (o *Attack) SetHashListId(v int64)

SetHashListId sets field value

func (*Attack) SetHashListUrl

func (o *Attack) SetHashListUrl(v string)

SetHashListUrl gets a reference to the given string and assigns it to the HashListUrl field.

func (*Attack) SetHashMode

func (o *Attack) SetHashMode(v int32)

SetHashMode sets field value

func (*Attack) SetId

func (o *Attack) SetId(v int64)

SetId sets field value

func (*Attack) SetIncrementMaximum

func (o *Attack) SetIncrementMaximum(v int32)

SetIncrementMaximum gets a reference to the given NullableInt32 and assigns it to the IncrementMaximum field.

func (*Attack) SetIncrementMaximumNil added in v0.1.2

func (o *Attack) SetIncrementMaximumNil()

SetIncrementMaximumNil sets the value for IncrementMaximum to be an explicit nil

func (*Attack) SetIncrementMinimum

func (o *Attack) SetIncrementMinimum(v int32)

SetIncrementMinimum gets a reference to the given NullableInt32 and assigns it to the IncrementMinimum field.

func (*Attack) SetIncrementMinimumNil added in v0.1.2

func (o *Attack) SetIncrementMinimumNil()

SetIncrementMinimumNil sets the value for IncrementMinimum to be an explicit nil

func (*Attack) SetIncrementMode

func (o *Attack) SetIncrementMode(v bool)

SetIncrementMode gets a reference to the given bool and assigns it to the IncrementMode field.

func (*Attack) SetLeftRule

func (o *Attack) SetLeftRule(v string)

SetLeftRule gets a reference to the given NullableString and assigns it to the LeftRule field.

func (*Attack) SetLeftRuleNil

func (o *Attack) SetLeftRuleNil()

SetLeftRuleNil sets the value for LeftRule to be an explicit nil

func (*Attack) SetMarkovThreshold

func (o *Attack) SetMarkovThreshold(v int32)

SetMarkovThreshold gets a reference to the given int32 and assigns it to the MarkovThreshold field.

func (*Attack) SetMask

func (o *Attack) SetMask(v string)

SetMask gets a reference to the given string and assigns it to the Mask field.

func (*Attack) SetOptimized

func (o *Attack) SetOptimized(v bool)

SetOptimized sets field value

func (*Attack) SetRightRule

func (o *Attack) SetRightRule(v string)

SetRightRule gets a reference to the given NullableString and assigns it to the RightRule field.

func (*Attack) SetRightRuleNil

func (o *Attack) SetRightRuleNil()

SetRightRuleNil sets the value for RightRule to be an explicit nil

func (*Attack) SetRuleLists

func (o *Attack) SetRuleLists(v []AttackResourceFile)

SetRuleLists gets a reference to the given []AttackResourceFile and assigns it to the RuleLists field.

func (*Attack) SetSlowCandidateGenerators

func (o *Attack) SetSlowCandidateGenerators(v bool)

SetSlowCandidateGenerators sets field value

func (*Attack) SetUrl

func (o *Attack) SetUrl(v string)

SetUrl sets field value

func (*Attack) SetWordLists

func (o *Attack) SetWordLists(v []AttackResourceFile)

SetWordLists gets a reference to the given []AttackResourceFile and assigns it to the WordLists field.

func (*Attack) SetWorkloadProfile

func (o *Attack) SetWorkloadProfile(v int32)

SetWorkloadProfile sets field value

func (Attack) ToMap

func (o Attack) ToMap() (map[string]interface{}, error)

func (*Attack) UnmarshalJSON

func (o *Attack) UnmarshalJSON(data []byte) (err error)

func (*Attack) UnsetCustomCharset1

func (o *Attack) UnsetCustomCharset1()

UnsetCustomCharset1 ensures that no value is present for CustomCharset1, not even an explicit nil

func (*Attack) UnsetCustomCharset2

func (o *Attack) UnsetCustomCharset2()

UnsetCustomCharset2 ensures that no value is present for CustomCharset2, not even an explicit nil

func (*Attack) UnsetCustomCharset3

func (o *Attack) UnsetCustomCharset3()

UnsetCustomCharset3 ensures that no value is present for CustomCharset3, not even an explicit nil

func (*Attack) UnsetCustomCharset4

func (o *Attack) UnsetCustomCharset4()

UnsetCustomCharset4 ensures that no value is present for CustomCharset4, not even an explicit nil

func (*Attack) UnsetIncrementMaximum added in v0.1.2

func (o *Attack) UnsetIncrementMaximum()

UnsetIncrementMaximum ensures that no value is present for IncrementMaximum, not even an explicit nil

func (*Attack) UnsetIncrementMinimum added in v0.1.2

func (o *Attack) UnsetIncrementMinimum()

UnsetIncrementMinimum ensures that no value is present for IncrementMinimum, not even an explicit nil

func (*Attack) UnsetLeftRule

func (o *Attack) UnsetLeftRule()

UnsetLeftRule ensures that no value is present for LeftRule, not even an explicit nil

func (*Attack) UnsetRightRule

func (o *Attack) UnsetRightRule()

UnsetRightRule ensures that no value is present for RightRule, not even an explicit nil

type AttackResourceFile

type AttackResourceFile struct {
	Id          int64  `json:"id"`
	DownloadUrl string `json:"download_url"`
	Checksum    string `json:"checksum"`
	FileName    string `json:"file_name"`
}

AttackResourceFile struct for AttackResourceFile

func NewAttackResourceFile

func NewAttackResourceFile(id int64, downloadUrl string, checksum string, fileName string) *AttackResourceFile

NewAttackResourceFile instantiates a new AttackResourceFile object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAttackResourceFileWithDefaults

func NewAttackResourceFileWithDefaults() *AttackResourceFile

NewAttackResourceFileWithDefaults instantiates a new AttackResourceFile object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AttackResourceFile) GetChecksum

func (o *AttackResourceFile) GetChecksum() string

GetChecksum returns the Checksum field value

func (*AttackResourceFile) GetChecksumOk

func (o *AttackResourceFile) GetChecksumOk() (*string, bool)

GetChecksumOk returns a tuple with the Checksum field value and a boolean to check if the value has been set.

func (*AttackResourceFile) GetDownloadUrl

func (o *AttackResourceFile) GetDownloadUrl() string

GetDownloadUrl returns the DownloadUrl field value

func (*AttackResourceFile) GetDownloadUrlOk

func (o *AttackResourceFile) GetDownloadUrlOk() (*string, bool)

GetDownloadUrlOk returns a tuple with the DownloadUrl field value and a boolean to check if the value has been set.

func (*AttackResourceFile) GetFileName

func (o *AttackResourceFile) GetFileName() string

GetFileName returns the FileName field value

func (*AttackResourceFile) GetFileNameOk

func (o *AttackResourceFile) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value and a boolean to check if the value has been set.

func (*AttackResourceFile) GetId

func (o *AttackResourceFile) GetId() int64

GetId returns the Id field value

func (*AttackResourceFile) GetIdOk

func (o *AttackResourceFile) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (AttackResourceFile) MarshalJSON

func (o AttackResourceFile) MarshalJSON() ([]byte, error)

func (*AttackResourceFile) SetChecksum

func (o *AttackResourceFile) SetChecksum(v string)

SetChecksum sets field value

func (*AttackResourceFile) SetDownloadUrl

func (o *AttackResourceFile) SetDownloadUrl(v string)

SetDownloadUrl sets field value

func (*AttackResourceFile) SetFileName

func (o *AttackResourceFile) SetFileName(v string)

SetFileName sets field value

func (*AttackResourceFile) SetId

func (o *AttackResourceFile) SetId(v int64)

SetId sets field value

func (AttackResourceFile) ToMap

func (o AttackResourceFile) ToMap() (map[string]interface{}, error)

func (*AttackResourceFile) UnmarshalJSON

func (o *AttackResourceFile) UnmarshalJSON(data []byte) (err error)

type AttacksAPIService

type AttacksAPIService service

AttacksAPIService AttacksAPI service

func (*AttacksAPIService) HashListAttack

func (a *AttacksAPIService) HashListAttack(ctx context.Context, id int64) ApiHashListAttackRequest

HashListAttack Get the hash list

Returns the hash list for an attack.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiHashListAttackRequest

func (*AttacksAPIService) HashListAttackExecute

func (a *AttacksAPIService) HashListAttackExecute(r ApiHashListAttackRequest) (*os.File, *http.Response, error)

Execute executes the request

@return *os.File

func (*AttacksAPIService) ShowAttack

ShowAttack show attack

Returns an attack by id. This is used to get the details of an attack.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiShowAttackRequest

func (*AttacksAPIService) ShowAttackExecute

func (a *AttacksAPIService) ShowAttackExecute(r ApiShowAttackRequest) (*Attack, *http.Response, error)

Execute executes the request

@return Attack

type AuthenticationResult added in v0.1.11

type AuthenticationResult struct {
	Authenticated bool  `json:"authenticated"`
	AgentId       int64 `json:"agent_id"`
}

AuthenticationResult struct for AuthenticationResult

func NewAuthenticationResult added in v0.1.11

func NewAuthenticationResult(authenticated bool, agentId int64) *AuthenticationResult

NewAuthenticationResult instantiates a new AuthenticationResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAuthenticationResultWithDefaults added in v0.1.11

func NewAuthenticationResultWithDefaults() *AuthenticationResult

NewAuthenticationResultWithDefaults instantiates a new AuthenticationResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AuthenticationResult) GetAgentId added in v0.1.11

func (o *AuthenticationResult) GetAgentId() int64

GetAgentId returns the AgentId field value

func (*AuthenticationResult) GetAgentIdOk added in v0.1.11

func (o *AuthenticationResult) GetAgentIdOk() (*int64, bool)

GetAgentIdOk returns a tuple with the AgentId field value and a boolean to check if the value has been set.

func (*AuthenticationResult) GetAuthenticated added in v0.1.11

func (o *AuthenticationResult) GetAuthenticated() bool

GetAuthenticated returns the Authenticated field value

func (*AuthenticationResult) GetAuthenticatedOk added in v0.1.11

func (o *AuthenticationResult) GetAuthenticatedOk() (*bool, bool)

GetAuthenticatedOk returns a tuple with the Authenticated field value and a boolean to check if the value has been set.

func (AuthenticationResult) MarshalJSON added in v0.1.11

func (o AuthenticationResult) MarshalJSON() ([]byte, error)

func (*AuthenticationResult) SetAgentId added in v0.1.11

func (o *AuthenticationResult) SetAgentId(v int64)

SetAgentId sets field value

func (*AuthenticationResult) SetAuthenticated added in v0.1.11

func (o *AuthenticationResult) SetAuthenticated(v bool)

SetAuthenticated sets field value

func (AuthenticationResult) ToMap added in v0.1.11

func (o AuthenticationResult) ToMap() (map[string]interface{}, error)

func (*AuthenticationResult) UnmarshalJSON added in v0.1.11

func (o *AuthenticationResult) UnmarshalJSON(data []byte) (err error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ClientAPIService

type ClientAPIService service

ClientAPIService ClientAPI service

func (*ClientAPIService) Authenticate

Authenticate Authenticate Client

Authenticates the client. This is used to verify that the client is able to connect to the server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAuthenticateRequest

func (*ClientAPIService) AuthenticateExecute

Execute executes the request

@return AuthenticationResult

func (*ClientAPIService) Configuration

Configuration Get Agent Configuration

Returns the configuration for the agent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiConfigurationRequest

func (*ClientAPIService) ConfigurationExecute

Execute executes the request

@return AgentConfiguration

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CrackerUpdate

type CrackerUpdate struct {
	Available     bool           `json:"available"`
	LatestVersion NullableString `json:"latest_version,omitempty"`
	DownloadUrl   NullableString `json:"download_url,omitempty"`
	ExecName      NullableString `json:"exec_name,omitempty"`
	Message       NullableString `json:"message,omitempty"`
}

CrackerUpdate struct for CrackerUpdate

func NewCrackerUpdate

func NewCrackerUpdate(available bool) *CrackerUpdate

NewCrackerUpdate instantiates a new CrackerUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCrackerUpdateWithDefaults

func NewCrackerUpdateWithDefaults() *CrackerUpdate

NewCrackerUpdateWithDefaults instantiates a new CrackerUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CrackerUpdate) GetAvailable

func (o *CrackerUpdate) GetAvailable() bool

GetAvailable returns the Available field value

func (*CrackerUpdate) GetAvailableOk

func (o *CrackerUpdate) GetAvailableOk() (*bool, bool)

GetAvailableOk returns a tuple with the Available field value and a boolean to check if the value has been set.

func (*CrackerUpdate) GetDownloadUrl

func (o *CrackerUpdate) GetDownloadUrl() string

GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CrackerUpdate) GetDownloadUrlOk

func (o *CrackerUpdate) GetDownloadUrlOk() (*string, bool)

GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CrackerUpdate) GetExecName

func (o *CrackerUpdate) GetExecName() string

GetExecName returns the ExecName field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CrackerUpdate) GetExecNameOk

func (o *CrackerUpdate) GetExecNameOk() (*string, bool)

GetExecNameOk returns a tuple with the ExecName field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CrackerUpdate) GetLatestVersion

func (o *CrackerUpdate) GetLatestVersion() string

GetLatestVersion returns the LatestVersion field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CrackerUpdate) GetLatestVersionOk

func (o *CrackerUpdate) GetLatestVersionOk() (*string, bool)

GetLatestVersionOk returns a tuple with the LatestVersion field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CrackerUpdate) GetMessage

func (o *CrackerUpdate) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CrackerUpdate) GetMessageOk

func (o *CrackerUpdate) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CrackerUpdate) HasDownloadUrl

func (o *CrackerUpdate) HasDownloadUrl() bool

HasDownloadUrl returns a boolean if a field has been set.

func (*CrackerUpdate) HasExecName

func (o *CrackerUpdate) HasExecName() bool

HasExecName returns a boolean if a field has been set.

func (*CrackerUpdate) HasLatestVersion

func (o *CrackerUpdate) HasLatestVersion() bool

HasLatestVersion returns a boolean if a field has been set.

func (*CrackerUpdate) HasMessage

func (o *CrackerUpdate) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CrackerUpdate) MarshalJSON

func (o CrackerUpdate) MarshalJSON() ([]byte, error)

func (*CrackerUpdate) SetAvailable

func (o *CrackerUpdate) SetAvailable(v bool)

SetAvailable sets field value

func (*CrackerUpdate) SetDownloadUrl

func (o *CrackerUpdate) SetDownloadUrl(v string)

SetDownloadUrl gets a reference to the given NullableString and assigns it to the DownloadUrl field.

func (*CrackerUpdate) SetDownloadUrlNil

func (o *CrackerUpdate) SetDownloadUrlNil()

SetDownloadUrlNil sets the value for DownloadUrl to be an explicit nil

func (*CrackerUpdate) SetExecName

func (o *CrackerUpdate) SetExecName(v string)

SetExecName gets a reference to the given NullableString and assigns it to the ExecName field.

func (*CrackerUpdate) SetExecNameNil

func (o *CrackerUpdate) SetExecNameNil()

SetExecNameNil sets the value for ExecName to be an explicit nil

func (*CrackerUpdate) SetLatestVersion

func (o *CrackerUpdate) SetLatestVersion(v string)

SetLatestVersion gets a reference to the given NullableString and assigns it to the LatestVersion field.

func (*CrackerUpdate) SetLatestVersionNil

func (o *CrackerUpdate) SetLatestVersionNil()

SetLatestVersionNil sets the value for LatestVersion to be an explicit nil

func (*CrackerUpdate) SetMessage

func (o *CrackerUpdate) SetMessage(v string)

SetMessage gets a reference to the given NullableString and assigns it to the Message field.

func (*CrackerUpdate) SetMessageNil

func (o *CrackerUpdate) SetMessageNil()

SetMessageNil sets the value for Message to be an explicit nil

func (CrackerUpdate) ToMap

func (o CrackerUpdate) ToMap() (map[string]interface{}, error)

func (*CrackerUpdate) UnmarshalJSON

func (o *CrackerUpdate) UnmarshalJSON(data []byte) (err error)

func (*CrackerUpdate) UnsetDownloadUrl

func (o *CrackerUpdate) UnsetDownloadUrl()

UnsetDownloadUrl ensures that no value is present for DownloadUrl, not even an explicit nil

func (*CrackerUpdate) UnsetExecName

func (o *CrackerUpdate) UnsetExecName()

UnsetExecName ensures that no value is present for ExecName, not even an explicit nil

func (*CrackerUpdate) UnsetLatestVersion

func (o *CrackerUpdate) UnsetLatestVersion()

UnsetLatestVersion ensures that no value is present for LatestVersion, not even an explicit nil

func (*CrackerUpdate) UnsetMessage

func (o *CrackerUpdate) UnsetMessage()

UnsetMessage ensures that no value is present for Message, not even an explicit nil

type CrackersAPIService

type CrackersAPIService service

CrackersAPIService CrackersAPI service

func (*CrackersAPIService) CheckForCrackerUpdate

func (a *CrackersAPIService) CheckForCrackerUpdate(ctx context.Context) ApiCheckForCrackerUpdateRequest

CheckForCrackerUpdate Check for Cracker Update

Check for a cracker update, based on the operating system and version.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCheckForCrackerUpdateRequest

func (*CrackersAPIService) CheckForCrackerUpdateExecute

func (a *CrackersAPIService) CheckForCrackerUpdateExecute(r ApiCheckForCrackerUpdateRequest) (*CrackerUpdate, *http.Response, error)

Execute executes the request

@return CrackerUpdate

type DeviceStatus

type DeviceStatus struct {
	DeviceId    int32  `json:"device_id"`
	DeviceName  string `json:"device_name"`
	DeviceType  string `json:"device_type"`
	Speed       int64  `json:"speed"`
	Utilization int32  `json:"utilization"`
	Temperature int32  `json:"temperature"`
}

DeviceStatus struct for DeviceStatus

func NewDeviceStatus

func NewDeviceStatus(deviceId int32, deviceName string, deviceType string, speed int64, utilization int32, temperature int32) *DeviceStatus

NewDeviceStatus instantiates a new DeviceStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeviceStatusWithDefaults

func NewDeviceStatusWithDefaults() *DeviceStatus

NewDeviceStatusWithDefaults instantiates a new DeviceStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeviceStatus) GetDeviceId

func (o *DeviceStatus) GetDeviceId() int32

GetDeviceId returns the DeviceId field value

func (*DeviceStatus) GetDeviceIdOk

func (o *DeviceStatus) GetDeviceIdOk() (*int32, bool)

GetDeviceIdOk returns a tuple with the DeviceId field value and a boolean to check if the value has been set.

func (*DeviceStatus) GetDeviceName

func (o *DeviceStatus) GetDeviceName() string

GetDeviceName returns the DeviceName field value

func (*DeviceStatus) GetDeviceNameOk

func (o *DeviceStatus) GetDeviceNameOk() (*string, bool)

GetDeviceNameOk returns a tuple with the DeviceName field value and a boolean to check if the value has been set.

func (*DeviceStatus) GetDeviceType

func (o *DeviceStatus) GetDeviceType() string

GetDeviceType returns the DeviceType field value

func (*DeviceStatus) GetDeviceTypeOk

func (o *DeviceStatus) GetDeviceTypeOk() (*string, bool)

GetDeviceTypeOk returns a tuple with the DeviceType field value and a boolean to check if the value has been set.

func (*DeviceStatus) GetSpeed

func (o *DeviceStatus) GetSpeed() int64

GetSpeed returns the Speed field value

func (*DeviceStatus) GetSpeedOk

func (o *DeviceStatus) GetSpeedOk() (*int64, bool)

GetSpeedOk returns a tuple with the Speed field value and a boolean to check if the value has been set.

func (*DeviceStatus) GetTemperature

func (o *DeviceStatus) GetTemperature() int32

GetTemperature returns the Temperature field value

func (*DeviceStatus) GetTemperatureOk

func (o *DeviceStatus) GetTemperatureOk() (*int32, bool)

GetTemperatureOk returns a tuple with the Temperature field value and a boolean to check if the value has been set.

func (*DeviceStatus) GetUtilization

func (o *DeviceStatus) GetUtilization() int32

GetUtilization returns the Utilization field value

func (*DeviceStatus) GetUtilizationOk

func (o *DeviceStatus) GetUtilizationOk() (*int32, bool)

GetUtilizationOk returns a tuple with the Utilization field value and a boolean to check if the value has been set.

func (DeviceStatus) MarshalJSON

func (o DeviceStatus) MarshalJSON() ([]byte, error)

func (*DeviceStatus) SetDeviceId

func (o *DeviceStatus) SetDeviceId(v int32)

SetDeviceId sets field value

func (*DeviceStatus) SetDeviceName

func (o *DeviceStatus) SetDeviceName(v string)

SetDeviceName sets field value

func (*DeviceStatus) SetDeviceType

func (o *DeviceStatus) SetDeviceType(v string)

SetDeviceType sets field value

func (*DeviceStatus) SetSpeed

func (o *DeviceStatus) SetSpeed(v int64)

SetSpeed sets field value

func (*DeviceStatus) SetTemperature

func (o *DeviceStatus) SetTemperature(v int32)

SetTemperature sets field value

func (*DeviceStatus) SetUtilization

func (o *DeviceStatus) SetUtilization(v int32)

SetUtilization sets field value

func (DeviceStatus) ToMap

func (o DeviceStatus) ToMap() (map[string]interface{}, error)

func (*DeviceStatus) UnmarshalJSON added in v0.1.2

func (o *DeviceStatus) UnmarshalJSON(data []byte) (err error)

type ErrorObject

type ErrorObject struct {
	Error *string `json:"error,omitempty"`
}

ErrorObject struct for ErrorObject

func NewErrorObject

func NewErrorObject() *ErrorObject

NewErrorObject instantiates a new ErrorObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorObjectWithDefaults

func NewErrorObjectWithDefaults() *ErrorObject

NewErrorObjectWithDefaults instantiates a new ErrorObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorObject) GetError

func (o *ErrorObject) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ErrorObject) GetErrorOk

func (o *ErrorObject) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorObject) HasError

func (o *ErrorObject) HasError() bool

HasError returns a boolean if a field has been set.

func (ErrorObject) MarshalJSON

func (o ErrorObject) MarshalJSON() ([]byte, error)

func (*ErrorObject) SetError

func (o *ErrorObject) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (ErrorObject) ToMap

func (o ErrorObject) ToMap() (map[string]interface{}, error)

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type HashcatBenchmark

type HashcatBenchmark struct {
	HashType  int32   `json:"hash_type"`
	Runtime   int64   `json:"runtime"`
	HashSpeed float32 `json:"hash_speed"`
	Device    int32   `json:"device"`
}

HashcatBenchmark struct for HashcatBenchmark

func NewHashcatBenchmark

func NewHashcatBenchmark(hashType int32, runtime int64, hashSpeed float32, device int32) *HashcatBenchmark

NewHashcatBenchmark instantiates a new HashcatBenchmark object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHashcatBenchmarkWithDefaults

func NewHashcatBenchmarkWithDefaults() *HashcatBenchmark

NewHashcatBenchmarkWithDefaults instantiates a new HashcatBenchmark object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HashcatBenchmark) GetDevice

func (o *HashcatBenchmark) GetDevice() int32

GetDevice returns the Device field value

func (*HashcatBenchmark) GetDeviceOk

func (o *HashcatBenchmark) GetDeviceOk() (*int32, bool)

GetDeviceOk returns a tuple with the Device field value and a boolean to check if the value has been set.

func (*HashcatBenchmark) GetHashSpeed

func (o *HashcatBenchmark) GetHashSpeed() float32

GetHashSpeed returns the HashSpeed field value

func (*HashcatBenchmark) GetHashSpeedOk

func (o *HashcatBenchmark) GetHashSpeedOk() (*float32, bool)

GetHashSpeedOk returns a tuple with the HashSpeed field value and a boolean to check if the value has been set.

func (*HashcatBenchmark) GetHashType

func (o *HashcatBenchmark) GetHashType() int32

GetHashType returns the HashType field value

func (*HashcatBenchmark) GetHashTypeOk

func (o *HashcatBenchmark) GetHashTypeOk() (*int32, bool)

GetHashTypeOk returns a tuple with the HashType field value and a boolean to check if the value has been set.

func (*HashcatBenchmark) GetRuntime

func (o *HashcatBenchmark) GetRuntime() int64

GetRuntime returns the Runtime field value

func (*HashcatBenchmark) GetRuntimeOk

func (o *HashcatBenchmark) GetRuntimeOk() (*int64, bool)

GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.

func (HashcatBenchmark) MarshalJSON

func (o HashcatBenchmark) MarshalJSON() ([]byte, error)

func (*HashcatBenchmark) SetDevice

func (o *HashcatBenchmark) SetDevice(v int32)

SetDevice sets field value

func (*HashcatBenchmark) SetHashSpeed

func (o *HashcatBenchmark) SetHashSpeed(v float32)

SetHashSpeed sets field value

func (*HashcatBenchmark) SetHashType

func (o *HashcatBenchmark) SetHashType(v int32)

SetHashType sets field value

func (*HashcatBenchmark) SetRuntime

func (o *HashcatBenchmark) SetRuntime(v int64)

SetRuntime sets field value

func (HashcatBenchmark) ToMap

func (o HashcatBenchmark) ToMap() (map[string]interface{}, error)

func (*HashcatBenchmark) UnmarshalJSON

func (o *HashcatBenchmark) UnmarshalJSON(data []byte) (err error)

type HashcatGuess

type HashcatGuess struct {
	GuessBase           string  `json:"guess_base"`
	GuessBaseCount      int64   `json:"guess_base_count"`
	GuessBaseOffset     int64   `json:"guess_base_offset"`
	GuessBasePercentage float32 `json:"guess_base_percentage"`
	GuessMod            string  `json:"guess_mod"`
	GuessModCount       int64   `json:"guess_mod_count"`
	GuessModOffset      int64   `json:"guess_mod_offset"`
	GuessModPercentage  float32 `json:"guess_mod_percentage"`
	GuessMode           int32   `json:"guess_mode"`
}

HashcatGuess struct for HashcatGuess

func NewHashcatGuess

func NewHashcatGuess(guessBase string, guessBaseCount int64, guessBaseOffset int64, guessBasePercentage float32, guessMod string, guessModCount int64, guessModOffset int64, guessModPercentage float32, guessMode int32) *HashcatGuess

NewHashcatGuess instantiates a new HashcatGuess object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHashcatGuessWithDefaults

func NewHashcatGuessWithDefaults() *HashcatGuess

NewHashcatGuessWithDefaults instantiates a new HashcatGuess object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HashcatGuess) GetGuessBase

func (o *HashcatGuess) GetGuessBase() string

GetGuessBase returns the GuessBase field value

func (*HashcatGuess) GetGuessBaseCount

func (o *HashcatGuess) GetGuessBaseCount() int64

GetGuessBaseCount returns the GuessBaseCount field value

func (*HashcatGuess) GetGuessBaseCountOk

func (o *HashcatGuess) GetGuessBaseCountOk() (*int64, bool)

GetGuessBaseCountOk returns a tuple with the GuessBaseCount field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessBaseOffset

func (o *HashcatGuess) GetGuessBaseOffset() int64

GetGuessBaseOffset returns the GuessBaseOffset field value

func (*HashcatGuess) GetGuessBaseOffsetOk

func (o *HashcatGuess) GetGuessBaseOffsetOk() (*int64, bool)

GetGuessBaseOffsetOk returns a tuple with the GuessBaseOffset field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessBaseOk

func (o *HashcatGuess) GetGuessBaseOk() (*string, bool)

GetGuessBaseOk returns a tuple with the GuessBase field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessBasePercentage added in v0.1.10

func (o *HashcatGuess) GetGuessBasePercentage() float32

GetGuessBasePercentage returns the GuessBasePercentage field value

func (*HashcatGuess) GetGuessBasePercentageOk added in v0.1.10

func (o *HashcatGuess) GetGuessBasePercentageOk() (*float32, bool)

GetGuessBasePercentageOk returns a tuple with the GuessBasePercentage field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessMod

func (o *HashcatGuess) GetGuessMod() string

GetGuessMod returns the GuessMod field value

func (*HashcatGuess) GetGuessModCount

func (o *HashcatGuess) GetGuessModCount() int64

GetGuessModCount returns the GuessModCount field value

func (*HashcatGuess) GetGuessModCountOk

func (o *HashcatGuess) GetGuessModCountOk() (*int64, bool)

GetGuessModCountOk returns a tuple with the GuessModCount field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessModOffset

func (o *HashcatGuess) GetGuessModOffset() int64

GetGuessModOffset returns the GuessModOffset field value

func (*HashcatGuess) GetGuessModOffsetOk

func (o *HashcatGuess) GetGuessModOffsetOk() (*int64, bool)

GetGuessModOffsetOk returns a tuple with the GuessModOffset field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessModOk

func (o *HashcatGuess) GetGuessModOk() (*string, bool)

GetGuessModOk returns a tuple with the GuessMod field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessModPercentage added in v0.1.10

func (o *HashcatGuess) GetGuessModPercentage() float32

GetGuessModPercentage returns the GuessModPercentage field value

func (*HashcatGuess) GetGuessModPercentageOk added in v0.1.10

func (o *HashcatGuess) GetGuessModPercentageOk() (*float32, bool)

GetGuessModPercentageOk returns a tuple with the GuessModPercentage field value and a boolean to check if the value has been set.

func (*HashcatGuess) GetGuessMode

func (o *HashcatGuess) GetGuessMode() int32

GetGuessMode returns the GuessMode field value

func (*HashcatGuess) GetGuessModeOk

func (o *HashcatGuess) GetGuessModeOk() (*int32, bool)

GetGuessModeOk returns a tuple with the GuessMode field value and a boolean to check if the value has been set.

func (HashcatGuess) MarshalJSON

func (o HashcatGuess) MarshalJSON() ([]byte, error)

func (*HashcatGuess) SetGuessBase

func (o *HashcatGuess) SetGuessBase(v string)

SetGuessBase sets field value

func (*HashcatGuess) SetGuessBaseCount

func (o *HashcatGuess) SetGuessBaseCount(v int64)

SetGuessBaseCount sets field value

func (*HashcatGuess) SetGuessBaseOffset

func (o *HashcatGuess) SetGuessBaseOffset(v int64)

SetGuessBaseOffset sets field value

func (*HashcatGuess) SetGuessBasePercentage added in v0.1.10

func (o *HashcatGuess) SetGuessBasePercentage(v float32)

SetGuessBasePercentage sets field value

func (*HashcatGuess) SetGuessMod

func (o *HashcatGuess) SetGuessMod(v string)

SetGuessMod sets field value

func (*HashcatGuess) SetGuessModCount

func (o *HashcatGuess) SetGuessModCount(v int64)

SetGuessModCount sets field value

func (*HashcatGuess) SetGuessModOffset

func (o *HashcatGuess) SetGuessModOffset(v int64)

SetGuessModOffset sets field value

func (*HashcatGuess) SetGuessModPercentage added in v0.1.10

func (o *HashcatGuess) SetGuessModPercentage(v float32)

SetGuessModPercentage sets field value

func (*HashcatGuess) SetGuessMode

func (o *HashcatGuess) SetGuessMode(v int32)

SetGuessMode sets field value

func (HashcatGuess) ToMap

func (o HashcatGuess) ToMap() (map[string]interface{}, error)

func (*HashcatGuess) UnmarshalJSON added in v0.1.2

func (o *HashcatGuess) UnmarshalJSON(data []byte) (err error)

type HashcatResult

type HashcatResult struct {
	Timestamp time.Time `json:"timestamp"`
	Hash      string    `json:"hash"`
	PlainText string    `json:"plain_text"`
}

HashcatResult struct for HashcatResult

func NewHashcatResult

func NewHashcatResult(timestamp time.Time, hash string, plainText string) *HashcatResult

NewHashcatResult instantiates a new HashcatResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHashcatResultWithDefaults

func NewHashcatResultWithDefaults() *HashcatResult

NewHashcatResultWithDefaults instantiates a new HashcatResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HashcatResult) GetHash

func (o *HashcatResult) GetHash() string

GetHash returns the Hash field value

func (*HashcatResult) GetHashOk

func (o *HashcatResult) GetHashOk() (*string, bool)

GetHashOk returns a tuple with the Hash field value and a boolean to check if the value has been set.

func (*HashcatResult) GetPlainText

func (o *HashcatResult) GetPlainText() string

GetPlainText returns the PlainText field value

func (*HashcatResult) GetPlainTextOk

func (o *HashcatResult) GetPlainTextOk() (*string, bool)

GetPlainTextOk returns a tuple with the PlainText field value and a boolean to check if the value has been set.

func (*HashcatResult) GetTimestamp

func (o *HashcatResult) GetTimestamp() time.Time

GetTimestamp returns the Timestamp field value

func (*HashcatResult) GetTimestampOk

func (o *HashcatResult) GetTimestampOk() (*time.Time, bool)

GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.

func (HashcatResult) MarshalJSON

func (o HashcatResult) MarshalJSON() ([]byte, error)

func (*HashcatResult) SetHash

func (o *HashcatResult) SetHash(v string)

SetHash sets field value

func (*HashcatResult) SetPlainText

func (o *HashcatResult) SetPlainText(v string)

SetPlainText sets field value

func (*HashcatResult) SetTimestamp

func (o *HashcatResult) SetTimestamp(v time.Time)

SetTimestamp sets field value

func (HashcatResult) ToMap

func (o HashcatResult) ToMap() (map[string]interface{}, error)

func (*HashcatResult) UnmarshalJSON

func (o *HashcatResult) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableAdvancedAgentConfiguration

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

func (NullableAdvancedAgentConfiguration) Get

func (NullableAdvancedAgentConfiguration) IsSet

func (NullableAdvancedAgentConfiguration) MarshalJSON

func (v NullableAdvancedAgentConfiguration) MarshalJSON() ([]byte, error)

func (*NullableAdvancedAgentConfiguration) Set

func (*NullableAdvancedAgentConfiguration) UnmarshalJSON

func (v *NullableAdvancedAgentConfiguration) UnmarshalJSON(src []byte) error

func (*NullableAdvancedAgentConfiguration) Unset

type NullableAgent

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

func NewNullableAgent

func NewNullableAgent(val *Agent) *NullableAgent

func (NullableAgent) Get

func (v NullableAgent) Get() *Agent

func (NullableAgent) IsSet

func (v NullableAgent) IsSet() bool

func (NullableAgent) MarshalJSON

func (v NullableAgent) MarshalJSON() ([]byte, error)

func (*NullableAgent) Set

func (v *NullableAgent) Set(val *Agent)

func (*NullableAgent) UnmarshalJSON

func (v *NullableAgent) UnmarshalJSON(src []byte) error

func (*NullableAgent) Unset

func (v *NullableAgent) Unset()

type NullableAgentConfiguration added in v0.1.11

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

func NewNullableAgentConfiguration added in v0.1.11

func NewNullableAgentConfiguration(val *AgentConfiguration) *NullableAgentConfiguration

func (NullableAgentConfiguration) Get added in v0.1.11

func (NullableAgentConfiguration) IsSet added in v0.1.11

func (v NullableAgentConfiguration) IsSet() bool

func (NullableAgentConfiguration) MarshalJSON added in v0.1.11

func (v NullableAgentConfiguration) MarshalJSON() ([]byte, error)

func (*NullableAgentConfiguration) Set added in v0.1.11

func (*NullableAgentConfiguration) UnmarshalJSON added in v0.1.11

func (v *NullableAgentConfiguration) UnmarshalJSON(src []byte) error

func (*NullableAgentConfiguration) Unset added in v0.1.11

func (v *NullableAgentConfiguration) Unset()

type NullableAgentLastBenchmark

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

func NewNullableAgentLastBenchmark

func NewNullableAgentLastBenchmark(val *AgentLastBenchmark) *NullableAgentLastBenchmark

func (NullableAgentLastBenchmark) Get

func (NullableAgentLastBenchmark) IsSet

func (v NullableAgentLastBenchmark) IsSet() bool

func (NullableAgentLastBenchmark) MarshalJSON

func (v NullableAgentLastBenchmark) MarshalJSON() ([]byte, error)

func (*NullableAgentLastBenchmark) Set

func (*NullableAgentLastBenchmark) UnmarshalJSON

func (v *NullableAgentLastBenchmark) UnmarshalJSON(src []byte) error

func (*NullableAgentLastBenchmark) Unset

func (v *NullableAgentLastBenchmark) Unset()

type NullableAgentUpdate

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

func NewNullableAgentUpdate

func NewNullableAgentUpdate(val *AgentUpdate) *NullableAgentUpdate

func (NullableAgentUpdate) Get

func (NullableAgentUpdate) IsSet

func (v NullableAgentUpdate) IsSet() bool

func (NullableAgentUpdate) MarshalJSON

func (v NullableAgentUpdate) MarshalJSON() ([]byte, error)

func (*NullableAgentUpdate) Set

func (v *NullableAgentUpdate) Set(val *AgentUpdate)

func (*NullableAgentUpdate) UnmarshalJSON

func (v *NullableAgentUpdate) UnmarshalJSON(src []byte) error

func (*NullableAgentUpdate) Unset

func (v *NullableAgentUpdate) Unset()

type NullableAttack

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

func NewNullableAttack

func NewNullableAttack(val *Attack) *NullableAttack

func (NullableAttack) Get

func (v NullableAttack) Get() *Attack

func (NullableAttack) IsSet

func (v NullableAttack) IsSet() bool

func (NullableAttack) MarshalJSON

func (v NullableAttack) MarshalJSON() ([]byte, error)

func (*NullableAttack) Set

func (v *NullableAttack) Set(val *Attack)

func (*NullableAttack) UnmarshalJSON

func (v *NullableAttack) UnmarshalJSON(src []byte) error

func (*NullableAttack) Unset

func (v *NullableAttack) Unset()

type NullableAttackResourceFile

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

func NewNullableAttackResourceFile

func NewNullableAttackResourceFile(val *AttackResourceFile) *NullableAttackResourceFile

func (NullableAttackResourceFile) Get

func (NullableAttackResourceFile) IsSet

func (v NullableAttackResourceFile) IsSet() bool

func (NullableAttackResourceFile) MarshalJSON

func (v NullableAttackResourceFile) MarshalJSON() ([]byte, error)

func (*NullableAttackResourceFile) Set

func (*NullableAttackResourceFile) UnmarshalJSON

func (v *NullableAttackResourceFile) UnmarshalJSON(src []byte) error

func (*NullableAttackResourceFile) Unset

func (v *NullableAttackResourceFile) Unset()

type NullableAuthenticationResult added in v0.1.11

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

func NewNullableAuthenticationResult added in v0.1.11

func NewNullableAuthenticationResult(val *AuthenticationResult) *NullableAuthenticationResult

func (NullableAuthenticationResult) Get added in v0.1.11

func (NullableAuthenticationResult) IsSet added in v0.1.11

func (NullableAuthenticationResult) MarshalJSON added in v0.1.11

func (v NullableAuthenticationResult) MarshalJSON() ([]byte, error)

func (*NullableAuthenticationResult) Set added in v0.1.11

func (*NullableAuthenticationResult) UnmarshalJSON added in v0.1.11

func (v *NullableAuthenticationResult) UnmarshalJSON(src []byte) error

func (*NullableAuthenticationResult) Unset added in v0.1.11

func (v *NullableAuthenticationResult) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCrackerUpdate

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

func NewNullableCrackerUpdate

func NewNullableCrackerUpdate(val *CrackerUpdate) *NullableCrackerUpdate

func (NullableCrackerUpdate) Get

func (NullableCrackerUpdate) IsSet

func (v NullableCrackerUpdate) IsSet() bool

func (NullableCrackerUpdate) MarshalJSON

func (v NullableCrackerUpdate) MarshalJSON() ([]byte, error)

func (*NullableCrackerUpdate) Set

func (v *NullableCrackerUpdate) Set(val *CrackerUpdate)

func (*NullableCrackerUpdate) UnmarshalJSON

func (v *NullableCrackerUpdate) UnmarshalJSON(src []byte) error

func (*NullableCrackerUpdate) Unset

func (v *NullableCrackerUpdate) Unset()

type NullableDeviceStatus

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

func NewNullableDeviceStatus

func NewNullableDeviceStatus(val *DeviceStatus) *NullableDeviceStatus

func (NullableDeviceStatus) Get

func (NullableDeviceStatus) IsSet

func (v NullableDeviceStatus) IsSet() bool

func (NullableDeviceStatus) MarshalJSON

func (v NullableDeviceStatus) MarshalJSON() ([]byte, error)

func (*NullableDeviceStatus) Set

func (v *NullableDeviceStatus) Set(val *DeviceStatus)

func (*NullableDeviceStatus) UnmarshalJSON

func (v *NullableDeviceStatus) UnmarshalJSON(src []byte) error

func (*NullableDeviceStatus) Unset

func (v *NullableDeviceStatus) Unset()

type NullableErrorObject

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

func NewNullableErrorObject

func NewNullableErrorObject(val *ErrorObject) *NullableErrorObject

func (NullableErrorObject) Get

func (NullableErrorObject) IsSet

func (v NullableErrorObject) IsSet() bool

func (NullableErrorObject) MarshalJSON

func (v NullableErrorObject) MarshalJSON() ([]byte, error)

func (*NullableErrorObject) Set

func (v *NullableErrorObject) Set(val *ErrorObject)

func (*NullableErrorObject) UnmarshalJSON

func (v *NullableErrorObject) UnmarshalJSON(src []byte) error

func (*NullableErrorObject) Unset

func (v *NullableErrorObject) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableHashcatBenchmark

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

func NewNullableHashcatBenchmark

func NewNullableHashcatBenchmark(val *HashcatBenchmark) *NullableHashcatBenchmark

func (NullableHashcatBenchmark) Get

func (NullableHashcatBenchmark) IsSet

func (v NullableHashcatBenchmark) IsSet() bool

func (NullableHashcatBenchmark) MarshalJSON

func (v NullableHashcatBenchmark) MarshalJSON() ([]byte, error)

func (*NullableHashcatBenchmark) Set

func (*NullableHashcatBenchmark) UnmarshalJSON

func (v *NullableHashcatBenchmark) UnmarshalJSON(src []byte) error

func (*NullableHashcatBenchmark) Unset

func (v *NullableHashcatBenchmark) Unset()

type NullableHashcatGuess

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

func NewNullableHashcatGuess

func NewNullableHashcatGuess(val *HashcatGuess) *NullableHashcatGuess

func (NullableHashcatGuess) Get

func (NullableHashcatGuess) IsSet

func (v NullableHashcatGuess) IsSet() bool

func (NullableHashcatGuess) MarshalJSON

func (v NullableHashcatGuess) MarshalJSON() ([]byte, error)

func (*NullableHashcatGuess) Set

func (v *NullableHashcatGuess) Set(val *HashcatGuess)

func (*NullableHashcatGuess) UnmarshalJSON

func (v *NullableHashcatGuess) UnmarshalJSON(src []byte) error

func (*NullableHashcatGuess) Unset

func (v *NullableHashcatGuess) Unset()

type NullableHashcatResult

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

func NewNullableHashcatResult

func NewNullableHashcatResult(val *HashcatResult) *NullableHashcatResult

func (NullableHashcatResult) Get

func (NullableHashcatResult) IsSet

func (v NullableHashcatResult) IsSet() bool

func (NullableHashcatResult) MarshalJSON

func (v NullableHashcatResult) MarshalJSON() ([]byte, error)

func (*NullableHashcatResult) Set

func (v *NullableHashcatResult) Set(val *HashcatResult)

func (*NullableHashcatResult) UnmarshalJSON

func (v *NullableHashcatResult) UnmarshalJSON(src []byte) error

func (*NullableHashcatResult) Unset

func (v *NullableHashcatResult) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableStateError

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

func NewNullableStateError

func NewNullableStateError(val *StateError) *NullableStateError

func (NullableStateError) Get

func (v NullableStateError) Get() *StateError

func (NullableStateError) IsSet

func (v NullableStateError) IsSet() bool

func (NullableStateError) MarshalJSON

func (v NullableStateError) MarshalJSON() ([]byte, error)

func (*NullableStateError) Set

func (v *NullableStateError) Set(val *StateError)

func (*NullableStateError) UnmarshalJSON

func (v *NullableStateError) UnmarshalJSON(src []byte) error

func (*NullableStateError) Unset

func (v *NullableStateError) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTask

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

func NewNullableTask

func NewNullableTask(val *Task) *NullableTask

func (NullableTask) Get

func (v NullableTask) Get() *Task

func (NullableTask) IsSet

func (v NullableTask) IsSet() bool

func (NullableTask) MarshalJSON

func (v NullableTask) MarshalJSON() ([]byte, error)

func (*NullableTask) Set

func (v *NullableTask) Set(val *Task)

func (*NullableTask) UnmarshalJSON

func (v *NullableTask) UnmarshalJSON(src []byte) error

func (*NullableTask) Unset

func (v *NullableTask) Unset()

type NullableTaskStatus

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

func NewNullableTaskStatus

func NewNullableTaskStatus(val *TaskStatus) *NullableTaskStatus

func (NullableTaskStatus) Get

func (v NullableTaskStatus) Get() *TaskStatus

func (NullableTaskStatus) IsSet

func (v NullableTaskStatus) IsSet() bool

func (NullableTaskStatus) MarshalJSON

func (v NullableTaskStatus) MarshalJSON() ([]byte, error)

func (*NullableTaskStatus) Set

func (v *NullableTaskStatus) Set(val *TaskStatus)

func (*NullableTaskStatus) UnmarshalJSON

func (v *NullableTaskStatus) UnmarshalJSON(src []byte) error

func (*NullableTaskStatus) Unset

func (v *NullableTaskStatus) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StateError

type StateError struct {
	State []string `json:"state,omitempty"`
}

StateError struct for StateError

func NewStateError

func NewStateError() *StateError

NewStateError instantiates a new StateError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStateErrorWithDefaults

func NewStateErrorWithDefaults() *StateError

NewStateErrorWithDefaults instantiates a new StateError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StateError) GetState

func (o *StateError) GetState() []string

GetState returns the State field value if set, zero value otherwise.

func (*StateError) GetStateOk

func (o *StateError) GetStateOk() ([]string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StateError) HasState

func (o *StateError) HasState() bool

HasState returns a boolean if a field has been set.

func (StateError) MarshalJSON

func (o StateError) MarshalJSON() ([]byte, error)

func (*StateError) SetState

func (o *StateError) SetState(v []string)

SetState gets a reference to the given []string and assigns it to the State field.

func (StateError) ToMap

func (o StateError) ToMap() (map[string]interface{}, error)

type Task

type Task struct {
	Id        int64         `json:"id"`
	AttackId  int64         `json:"attack_id"`
	StartDate time.Time     `json:"start_date"`
	Status    string        `json:"status"`
	Skip      NullableInt64 `json:"skip,omitempty"`
	Limit     NullableInt64 `json:"limit,omitempty"`
}

Task struct for Task

func NewTask

func NewTask(id int64, attackId int64, startDate time.Time, status string) *Task

NewTask instantiates a new Task object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaskWithDefaults

func NewTaskWithDefaults() *Task

NewTaskWithDefaults instantiates a new Task object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Task) GetAttackId

func (o *Task) GetAttackId() int64

GetAttackId returns the AttackId field value

func (*Task) GetAttackIdOk

func (o *Task) GetAttackIdOk() (*int64, bool)

GetAttackIdOk returns a tuple with the AttackId field value and a boolean to check if the value has been set.

func (*Task) GetId

func (o *Task) GetId() int64

GetId returns the Id field value

func (*Task) GetIdOk

func (o *Task) GetIdOk() (*int64, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Task) GetLimit

func (o *Task) GetLimit() int64

GetLimit returns the Limit field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Task) GetLimitOk

func (o *Task) GetLimitOk() (*int64, bool)

GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Task) GetSkip

func (o *Task) GetSkip() int64

GetSkip returns the Skip field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Task) GetSkipOk

func (o *Task) GetSkipOk() (*int64, bool)

GetSkipOk returns a tuple with the Skip field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Task) GetStartDate

func (o *Task) GetStartDate() time.Time

GetStartDate returns the StartDate field value

func (*Task) GetStartDateOk

func (o *Task) GetStartDateOk() (*time.Time, bool)

GetStartDateOk returns a tuple with the StartDate field value and a boolean to check if the value has been set.

func (*Task) GetStatus

func (o *Task) GetStatus() string

GetStatus returns the Status field value

func (*Task) GetStatusOk

func (o *Task) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Task) HasLimit

func (o *Task) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*Task) HasSkip

func (o *Task) HasSkip() bool

HasSkip returns a boolean if a field has been set.

func (Task) MarshalJSON

func (o Task) MarshalJSON() ([]byte, error)

func (*Task) SetAttackId

func (o *Task) SetAttackId(v int64)

SetAttackId sets field value

func (*Task) SetId

func (o *Task) SetId(v int64)

SetId sets field value

func (*Task) SetLimit

func (o *Task) SetLimit(v int64)

SetLimit gets a reference to the given NullableInt64 and assigns it to the Limit field.

func (*Task) SetLimitNil

func (o *Task) SetLimitNil()

SetLimitNil sets the value for Limit to be an explicit nil

func (*Task) SetSkip

func (o *Task) SetSkip(v int64)

SetSkip gets a reference to the given NullableInt64 and assigns it to the Skip field.

func (*Task) SetSkipNil

func (o *Task) SetSkipNil()

SetSkipNil sets the value for Skip to be an explicit nil

func (*Task) SetStartDate

func (o *Task) SetStartDate(v time.Time)

SetStartDate sets field value

func (*Task) SetStatus

func (o *Task) SetStatus(v string)

SetStatus sets field value

func (Task) ToMap

func (o Task) ToMap() (map[string]interface{}, error)

func (*Task) UnmarshalJSON

func (o *Task) UnmarshalJSON(data []byte) (err error)

func (*Task) UnsetLimit

func (o *Task) UnsetLimit()

UnsetLimit ensures that no value is present for Limit, not even an explicit nil

func (*Task) UnsetSkip

func (o *Task) UnsetSkip()

UnsetSkip ensures that no value is present for Skip, not even an explicit nil

type TaskStatus

type TaskStatus struct {
	OriginalLine    string         `json:"original_line"`
	Time            time.Time      `json:"time"`
	Session         string         `json:"session"`
	HashcatGuess    HashcatGuess   `json:"hashcat_guess"`
	Status          int32          `json:"status"`
	Target          string         `json:"target"`
	Progress        []int64        `json:"progress"`
	RestorePoint    int64          `json:"restore_point"`
	RecoveredHashes []int32        `json:"recovered_hashes"`
	RecoveredSalts  []int32        `json:"recovered_salts"`
	Rejected        int64          `json:"rejected"`
	DeviceStatuses  []DeviceStatus `json:"device_statuses"`
	TimeStart       time.Time      `json:"time_start"`
	EstimatedStop   time.Time      `json:"estimated_stop"`
}

TaskStatus struct for TaskStatus

func NewTaskStatus

func NewTaskStatus(originalLine string, time time.Time, session string, hashcatGuess HashcatGuess, status int32, target string, progress []int64, restorePoint int64, recoveredHashes []int32, recoveredSalts []int32, rejected int64, deviceStatuses []DeviceStatus, timeStart time.Time, estimatedStop time.Time) *TaskStatus

NewTaskStatus instantiates a new TaskStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaskStatusWithDefaults

func NewTaskStatusWithDefaults() *TaskStatus

NewTaskStatusWithDefaults instantiates a new TaskStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TaskStatus) GetDeviceStatuses added in v0.1.8

func (o *TaskStatus) GetDeviceStatuses() []DeviceStatus

GetDeviceStatuses returns the DeviceStatuses field value

func (*TaskStatus) GetDeviceStatusesOk added in v0.1.8

func (o *TaskStatus) GetDeviceStatusesOk() ([]DeviceStatus, bool)

GetDeviceStatusesOk returns a tuple with the DeviceStatuses field value and a boolean to check if the value has been set.

func (*TaskStatus) GetEstimatedStop

func (o *TaskStatus) GetEstimatedStop() time.Time

GetEstimatedStop returns the EstimatedStop field value

func (*TaskStatus) GetEstimatedStopOk

func (o *TaskStatus) GetEstimatedStopOk() (*time.Time, bool)

GetEstimatedStopOk returns a tuple with the EstimatedStop field value and a boolean to check if the value has been set.

func (*TaskStatus) GetHashcatGuess added in v0.1.8

func (o *TaskStatus) GetHashcatGuess() HashcatGuess

GetHashcatGuess returns the HashcatGuess field value

func (*TaskStatus) GetHashcatGuessOk added in v0.1.8

func (o *TaskStatus) GetHashcatGuessOk() (*HashcatGuess, bool)

GetHashcatGuessOk returns a tuple with the HashcatGuess field value and a boolean to check if the value has been set.

func (*TaskStatus) GetOriginalLine

func (o *TaskStatus) GetOriginalLine() string

GetOriginalLine returns the OriginalLine field value

func (*TaskStatus) GetOriginalLineOk

func (o *TaskStatus) GetOriginalLineOk() (*string, bool)

GetOriginalLineOk returns a tuple with the OriginalLine field value and a boolean to check if the value has been set.

func (*TaskStatus) GetProgress

func (o *TaskStatus) GetProgress() []int64

GetProgress returns the Progress field value

func (*TaskStatus) GetProgressOk

func (o *TaskStatus) GetProgressOk() ([]int64, bool)

GetProgressOk returns a tuple with the Progress field value and a boolean to check if the value has been set.

func (*TaskStatus) GetRecoveredHashes

func (o *TaskStatus) GetRecoveredHashes() []int32

GetRecoveredHashes returns the RecoveredHashes field value

func (*TaskStatus) GetRecoveredHashesOk

func (o *TaskStatus) GetRecoveredHashesOk() ([]int32, bool)

GetRecoveredHashesOk returns a tuple with the RecoveredHashes field value and a boolean to check if the value has been set.

func (*TaskStatus) GetRecoveredSalts

func (o *TaskStatus) GetRecoveredSalts() []int32

GetRecoveredSalts returns the RecoveredSalts field value

func (*TaskStatus) GetRecoveredSaltsOk

func (o *TaskStatus) GetRecoveredSaltsOk() ([]int32, bool)

GetRecoveredSaltsOk returns a tuple with the RecoveredSalts field value and a boolean to check if the value has been set.

func (*TaskStatus) GetRejected

func (o *TaskStatus) GetRejected() int64

GetRejected returns the Rejected field value

func (*TaskStatus) GetRejectedOk

func (o *TaskStatus) GetRejectedOk() (*int64, bool)

GetRejectedOk returns a tuple with the Rejected field value and a boolean to check if the value has been set.

func (*TaskStatus) GetRestorePoint

func (o *TaskStatus) GetRestorePoint() int64

GetRestorePoint returns the RestorePoint field value

func (*TaskStatus) GetRestorePointOk

func (o *TaskStatus) GetRestorePointOk() (*int64, bool)

GetRestorePointOk returns a tuple with the RestorePoint field value and a boolean to check if the value has been set.

func (*TaskStatus) GetSession

func (o *TaskStatus) GetSession() string

GetSession returns the Session field value

func (*TaskStatus) GetSessionOk

func (o *TaskStatus) GetSessionOk() (*string, bool)

GetSessionOk returns a tuple with the Session field value and a boolean to check if the value has been set.

func (*TaskStatus) GetStatus

func (o *TaskStatus) GetStatus() int32

GetStatus returns the Status field value

func (*TaskStatus) GetStatusOk

func (o *TaskStatus) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*TaskStatus) GetTarget

func (o *TaskStatus) GetTarget() string

GetTarget returns the Target field value

func (*TaskStatus) GetTargetOk

func (o *TaskStatus) GetTargetOk() (*string, bool)

GetTargetOk returns a tuple with the Target field value and a boolean to check if the value has been set.

func (*TaskStatus) GetTime

func (o *TaskStatus) GetTime() time.Time

GetTime returns the Time field value

func (*TaskStatus) GetTimeOk

func (o *TaskStatus) GetTimeOk() (*time.Time, bool)

GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set.

func (*TaskStatus) GetTimeStart

func (o *TaskStatus) GetTimeStart() time.Time

GetTimeStart returns the TimeStart field value

func (*TaskStatus) GetTimeStartOk

func (o *TaskStatus) GetTimeStartOk() (*time.Time, bool)

GetTimeStartOk returns a tuple with the TimeStart field value and a boolean to check if the value has been set.

func (TaskStatus) MarshalJSON

func (o TaskStatus) MarshalJSON() ([]byte, error)

func (*TaskStatus) SetDeviceStatuses added in v0.1.8

func (o *TaskStatus) SetDeviceStatuses(v []DeviceStatus)

SetDeviceStatuses sets field value

func (*TaskStatus) SetEstimatedStop

func (o *TaskStatus) SetEstimatedStop(v time.Time)

SetEstimatedStop sets field value

func (*TaskStatus) SetHashcatGuess added in v0.1.8

func (o *TaskStatus) SetHashcatGuess(v HashcatGuess)

SetHashcatGuess sets field value

func (*TaskStatus) SetOriginalLine

func (o *TaskStatus) SetOriginalLine(v string)

SetOriginalLine sets field value

func (*TaskStatus) SetProgress

func (o *TaskStatus) SetProgress(v []int64)

SetProgress sets field value

func (*TaskStatus) SetRecoveredHashes

func (o *TaskStatus) SetRecoveredHashes(v []int32)

SetRecoveredHashes sets field value

func (*TaskStatus) SetRecoveredSalts

func (o *TaskStatus) SetRecoveredSalts(v []int32)

SetRecoveredSalts sets field value

func (*TaskStatus) SetRejected

func (o *TaskStatus) SetRejected(v int64)

SetRejected sets field value

func (*TaskStatus) SetRestorePoint

func (o *TaskStatus) SetRestorePoint(v int64)

SetRestorePoint sets field value

func (*TaskStatus) SetSession

func (o *TaskStatus) SetSession(v string)

SetSession sets field value

func (*TaskStatus) SetStatus

func (o *TaskStatus) SetStatus(v int32)

SetStatus sets field value

func (*TaskStatus) SetTarget

func (o *TaskStatus) SetTarget(v string)

SetTarget sets field value

func (*TaskStatus) SetTime

func (o *TaskStatus) SetTime(v time.Time)

SetTime sets field value

func (*TaskStatus) SetTimeStart

func (o *TaskStatus) SetTimeStart(v time.Time)

SetTimeStart sets field value

func (TaskStatus) ToMap

func (o TaskStatus) ToMap() (map[string]interface{}, error)

func (*TaskStatus) UnmarshalJSON

func (o *TaskStatus) UnmarshalJSON(data []byte) (err error)

type TasksAPIService

type TasksAPIService service

TasksAPIService TasksAPI service

func (*TasksAPIService) AbandonTask

func (a *TasksAPIService) AbandonTask(ctx context.Context, id int64) ApiAbandonTaskRequest

AbandonTask Abandon Task

Abandon a task. This will mark the task as abandoned. Usually used when the client is unable to complete the task.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiAbandonTaskRequest

func (*TasksAPIService) AbandonTaskExecute

func (a *TasksAPIService) AbandonTaskExecute(r ApiAbandonTaskRequest) (*http.Response, error)

Execute executes the request

func (*TasksAPIService) AcceptTask

func (a *TasksAPIService) AcceptTask(ctx context.Context, id int64) ApiAcceptTaskRequest

AcceptTask Accept Task

Accept an offered task from the server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiAcceptTaskRequest

func (*TasksAPIService) AcceptTaskExecute

func (a *TasksAPIService) AcceptTaskExecute(r ApiAcceptTaskRequest) (*http.Response, error)

Execute executes the request

func (*TasksAPIService) ExhaustedTask

func (a *TasksAPIService) ExhaustedTask(ctx context.Context, id int64) ApiExhaustedTaskRequest

ExhaustedTask Notify of Exhausted Task

Notify the server that the task is exhausted. This will mark the task as completed.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiExhaustedTaskRequest

func (*TasksAPIService) ExhaustedTaskExecute

func (a *TasksAPIService) ExhaustedTaskExecute(r ApiExhaustedTaskRequest) (*http.Response, error)

Execute executes the request

func (*TasksAPIService) NewTask

NewTask Request a new task from server

Request a new task from the server, if available.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiNewTaskRequest

func (*TasksAPIService) NewTaskExecute

func (a *TasksAPIService) NewTaskExecute(r ApiNewTaskRequest) (*Task, *http.Response, error)

Execute executes the request

@return Task

func (*TasksAPIService) ShowTask

ShowTask Request the task information

Request the task information from the server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiShowTaskRequest

func (*TasksAPIService) ShowTaskExecute

func (a *TasksAPIService) ShowTaskExecute(r ApiShowTaskRequest) (*Task, *http.Response, error)

Execute executes the request

@return Task

func (*TasksAPIService) SubmitCrack

func (a *TasksAPIService) SubmitCrack(ctx context.Context, id int64) ApiSubmitCrackRequest

SubmitCrack Submit a cracked hash result for a task

Submit a cracked hash result for a task.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiSubmitCrackRequest

func (*TasksAPIService) SubmitCrackExecute

func (a *TasksAPIService) SubmitCrackExecute(r ApiSubmitCrackRequest) (*http.Response, error)

Execute executes the request

func (*TasksAPIService) SubmitStatus

func (a *TasksAPIService) SubmitStatus(ctx context.Context, id int64) ApiSubmitStatusRequest

SubmitStatus Submit a status update for a task

Submit a status update for a task. This includes the status of the current guess and the devices.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id id
@return ApiSubmitStatusRequest

func (*TasksAPIService) SubmitStatusExecute

func (a *TasksAPIService) SubmitStatusExecute(r ApiSubmitStatusRequest) (*http.Response, error)

Execute executes the request

Jump to

Keyboard shortcuts

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