segments

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client can be used to interact with the Automation API

func NewClient

func NewClient(client *rest.Client) *Client

func (Client) Create

func (c Client) Create(ctx context.Context, data []byte) (Response, error)

Create creates a new segment entry on the server

func (Client) Delete

func (c Client) Delete(ctx context.Context, id string) (Response, error)

Delete removes configuration for segment with given ID from a server.

func (Client) Get

func (c Client) Get(ctx context.Context, id string) (Response, error)

Get gets a complete configuration of segment with an ID

func (Client) GetAll

func (c Client) GetAll(ctx context.Context) ([]Response, error)

GetAll gets a complete set of complete configuration for all available segments

func (Client) List

func (c Client) List(ctx context.Context) (Response, error)

List gets a complete set of available configs. The Data filed in response is normalized to json list of entries.

func (Client) Update

func (c Client) Update(ctx context.Context, id string, data []byte) (Response, error)

type Response

type Response = api.Response

Jump to

Keyboard shortcuts

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