Documentation ¶
Index ¶
- type Client
- func (nc *Client) AddLogLines(ctx context.Context, lines ...*logspb.LogLine) error
- func (nc *Client) BroadcastCommand(ctx context.Context, command string) error
- func (nc *Client) DownloadFile(ctx context.Context, info *fspb.FileInfo, out io.Writer) error
- func (nc *Client) Exploit(ctx context.Context, id string) (*epb.ExploitResponse, error)
- func (nc *Client) GetServerState(ctx context.Context) (*epb.ServerState, error)
- func (nc *Client) Heartbeat(ctx context.Context) (*epb.ServerState, error)
- func (nc *Client) Leave(ctx context.Context) error
- func (nc *Client) ListenBroadcasts(ctx context.Context) (<-chan *epb.BroadcastSubscribeResponse, error)
- func (nc *Client) ListenSingleRuns(ctx context.Context) (<-chan *epb.SingleRunSubscribeResponse, error)
- func (nc *Client) SearchLogLines(ctx context.Context, exploit string, version int64) (<-chan []*logspb.LogLine, error)
- func (nc *Client) SetExploitDisabled(ctx context.Context, id string, disabled bool) error
- func (nc *Client) SingleRun(ctx context.Context, exploitID string) error
- func (nc *Client) UpdateExploit(ctx context.Context, state *epb.ExploitState) (*epb.ExploitState, error)
- func (nc *Client) UploadFile(ctx context.Context, r io.Reader) (*fspb.FileInfo, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddLogLines ¶
func (*Client) BroadcastCommand ¶
func (*Client) DownloadFile ¶
func (*Client) GetServerState ¶
func (*Client) ListenBroadcasts ¶
func (*Client) ListenSingleRuns ¶
func (*Client) SearchLogLines ¶
func (*Client) SetExploitDisabled ¶
func (*Client) UpdateExploit ¶
func (nc *Client) UpdateExploit(ctx context.Context, state *epb.ExploitState) (*epb.ExploitState, error)
type Config ¶
type Config struct { Host string `mapstructure:"host"` MetricsHost string `mapstructure:"metrics_host"` ExploitDir string `mapstructure:"exploit_dir"` GrpcAuthKey string `mapstructure:"grpc_auth_key"` UseTLS bool `mapstructure:"use_tls"` }
func MustUnmarshalConfig ¶
func MustUnmarshalConfig() *Config
Click to show internal directories.
Click to hide internal directories.