Documentation ¶
Index ¶
- Constants
- func CompareTools(t1, t2 Tool) bool
- func Copy(dst, src string) error
- func CopyPrepend(dst, src, prepend string) error
- func GenerateResourceKeys(ca *x509.Certificate, caPrivKey *rsa.PrivateKey, cn string) (*x509.Certificate, *rsa.PrivateKey, error)
- func GetCertandKey(certPath, keyPath string) (*x509.Certificate, *rsa.PrivateKey, error)
- func IsDone(status string) bool
- func IsFailed(status string) bool
- func IsNew(status string) bool
- func IsRunning(status string) bool
- func StripQuotes(str string) string
- func WriteCertificateToFile(cert *x509.Certificate, filepath string) error
- func WriteCertificateToString(cert *x509.Certificate) (string, error)
- func WriteRSAPrivateKeyToFile(key *rsa.PrivateKey, filepath string) error
- func WriteRSAPrivateKeyToString(key *rsa.PrivateKey) (string, error)
- type JSONSchemaForm
- type Job
- type RPCCall
- type Tasker
- type Tool
- type Tooler
Constants ¶
View Source
const ( STATUS_CREATED = "created" STATUS_RUNNING = "running" STATUS_PENDING = "pending" STATUS_PAUSED = "paused" STATUS_DONE = "done" STATUS_FAILED = "failed" STATUS_QUIT = "quit" RES_CPU = "cpu" RES_GPU = "gpu" RES_NET = "net" )
Variables ¶
This section is empty.
Functions ¶
func CompareTools ¶
Compare two Tools to see if they are the same
func CopyPrepend ¶
CopyPrepend a file with prepended value
func GenerateResourceKeys ¶
func GenerateResourceKeys(ca *x509.Certificate, caPrivKey *rsa.PrivateKey, cn string) (*x509.Certificate, *rsa.PrivateKey, error)
GenerateResourceKeys generates the client authentication certificate and private key for TLS mutual authentication between the Queue and a Resource.
func GetCertandKey ¶
func GetCertandKey(certPath, keyPath string) (*x509.Certificate, *rsa.PrivateKey, error)
Parse PEM encoded certificate and private key from file path locations
func StripQuotes ¶
func WriteCertificateToFile ¶
func WriteCertificateToFile(cert *x509.Certificate, filepath string) error
WriteCertificateToPEM converts a certificate to PEM and writes to filepath
func WriteCertificateToString ¶
func WriteCertificateToString(cert *x509.Certificate) (string, error)
Converts a certificate to the PEM encoding format and puts it into a string
func WriteRSAPrivateKeyToFile ¶
func WriteRSAPrivateKeyToFile(key *rsa.PrivateKey, filepath string) error
WriteRSAPrivateKeyToPEM converts a RSA Private Key to PEM and writes to filepath
func WriteRSAPrivateKeyToString ¶
func WriteRSAPrivateKeyToString(key *rsa.PrivateKey) (string, error)
Converts a private key to the PEM format and puts it into a string
Types ¶
type JSONSchemaForm ¶
type JSONSchemaForm struct { Form json.RawMessage `json:"form"` Schema json.RawMessage `json:"schema"` }
type Job ¶
type Job struct { UUID string // UUID generated by the Queue ToolUUID string // ID of the tool to use with this job Name string // Name of the job Status string // Status of the job Error string // Last returned error from the tool StartTime time.Time // Start time of the job PurgeTime time.Time // Time to remove the job from the queue during a Queue.keeper() ETC string // The estimated time of completion Owner string // Owner provided by the web frontend ResAssigned string // Resource this job is assinged to if any CrackedHashes int64 // # of hashes cracked TotalHashes int64 // # of hashes provided Progress float64 // # % of cracked/provided Parameters map[string]string // Parameters returned to the tool PerformanceData map[string]string // Some performance status map[timestamp]perf# PerformanceTitle string // Title of the perf # OutputData [][]string // A 2D array of rows for output values OutputTitles []string // The headers for the 2D array of rows above }
Click to show internal directories.
Click to hide internal directories.