crowdstrike

package
v0.0.0-...-ec5b407 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package crowdstrike contains the API client for the CrowdStrike Falcon download endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadInstaller

func DownloadInstaller(token, sha256, filename string, contentLength int64) error

func ExchangeKeys

func ExchangeKeys(verbose bool) (string, error)

ExchangeKeys exchanges OAuth tokens for API keys with the CrowdStrike API.

Types

type ListMeta

type ListMeta struct {
	QueryTime float64 `json:"query_time"`
	PoweredBy string  `json:"powered_by"`
	TraceID   string  `json:"trace_id"`
}

type ListResources

type ListResources struct {
	ReleaseDate time.Time `json:"release_date"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Platform    string    `json:"platform"`
	OS          string    `json:"os"`
	OSVersion   string    `json:"os_version"`
	Sha256      string    `json:"sha256"`
	Version     string    `json:"version"`
	FileType    string    `json:"file_type"`
	FileSize    int64     `json:"file_size"`
}

func ListInstallers

func ListInstallers(token string, verbose bool) ([]ListResources, error)

type ListResp

type ListResp struct {
	Meta      ListMeta        `json:"meta"`
	Errors    []interface{}   `json:"errors"`
	Resources []ListResources `json:"resources"`
}

type OAuthResp

type OAuthResp struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int64  `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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