client

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyOption

type BodyOption func(*bodyOption)

BodyOption sets the type and content of the body

type Client

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

Client is used to communicate with the chaosd

func NewClient

func NewClient(cfg Config) *Client

NewClient creates a new chaosd client from a given address

func (*Client) CreateProcessAttack

func (c *Client) CreateProcessAttack(attack *core.ProcessCommand) (*utils.Response, *utils.APIError, error)

type Config

type Config struct {
	Addr string
}

Config defines for chaosd client

Jump to

Keyboard shortcuts

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