client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefault

func SetDefault(c *Client)

Types

type Client

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

func Default

func Default() *Client

func NewClient

func NewClient(url string, opts ...Option) *Client

func (*Client) CreateAdmission

func (c *Client) CreateAdmission(ctx context.Context, body io.Reader) error

func (*Client) CreateAuther

func (c *Client) CreateAuther(ctx context.Context, body io.Reader) error

func (*Client) CreateBypass

func (c *Client) CreateBypass(ctx context.Context, body io.Reader) error

func (*Client) CreateChain

func (c *Client) CreateChain(ctx context.Context, body io.Reader) error

func (*Client) CreateHop

func (c *Client) CreateHop(ctx context.Context, body io.Reader) error

func (*Client) CreateHostMapper

func (c *Client) CreateHostMapper(ctx context.Context, body io.Reader) error

func (*Client) CreateLimiter

func (c *Client) CreateLimiter(ctx context.Context, body io.Reader) error

func (*Client) CreateObserver

func (c *Client) CreateObserver(ctx context.Context, body io.Reader) error

func (*Client) CreateRecorder

func (c *Client) CreateRecorder(ctx context.Context, body io.Reader) error

func (*Client) CreateResolver

func (c *Client) CreateResolver(ctx context.Context, body io.Reader) error

func (*Client) CreateService

func (c *Client) CreateService(ctx context.Context, body io.Reader) error

func (*Client) DeleteAdmission

func (c *Client) DeleteAdmission(ctx context.Context, admission string) error

func (*Client) DeleteAuther

func (c *Client) DeleteAuther(ctx context.Context, auther string) error

func (*Client) DeleteBypass

func (c *Client) DeleteBypass(ctx context.Context, bypass string) error

func (*Client) DeleteChain

func (c *Client) DeleteChain(ctx context.Context, chain string) error

func (*Client) DeleteHop

func (c *Client) DeleteHop(ctx context.Context, hop string) error

func (*Client) DeleteHostMapper

func (c *Client) DeleteHostMapper(ctx context.Context, hostMapper string) error

func (*Client) DeleteLimiter

func (c *Client) DeleteLimiter(ctx context.Context, limiter string) error

func (*Client) DeleteObserver

func (c *Client) DeleteObserver(ctx context.Context, observer string) error

func (*Client) DeleteRecorder

func (c *Client) DeleteRecorder(ctx context.Context, recorder string) error

func (*Client) DeleteResolver

func (c *Client) DeleteResolver(ctx context.Context, resolver string) error

func (*Client) DeleteService

func (c *Client) DeleteService(ctx context.Context, service string) error

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context) (*api.Config, error)

func (*Client) SaveConfig

func (c *Client) SaveConfig(ctx context.Context, filepath string) error

func (*Client) UpdateAdmission

func (c *Client) UpdateAdmission(ctx context.Context, admission string, body io.Reader) error

func (*Client) UpdateAuther

func (c *Client) UpdateAuther(ctx context.Context, auther string, body io.Reader) error

func (*Client) UpdateBypass

func (c *Client) UpdateBypass(ctx context.Context, bypass string, body io.Reader) error

func (*Client) UpdateChain

func (c *Client) UpdateChain(ctx context.Context, chain string, body io.Reader) error

func (*Client) UpdateHop

func (c *Client) UpdateHop(ctx context.Context, hop string, body io.Reader) error

func (*Client) UpdateHostMapper

func (c *Client) UpdateHostMapper(ctx context.Context, hostMapper string, body io.Reader) error

func (*Client) UpdateLimiter

func (c *Client) UpdateLimiter(ctx context.Context, limiter string, body io.Reader) error

func (*Client) UpdateObserver

func (c *Client) UpdateObserver(ctx context.Context, observer string, body io.Reader) error

func (*Client) UpdateRecorder

func (c *Client) UpdateRecorder(ctx context.Context, recorder string, body io.Reader) error

func (*Client) UpdateResolver

func (c *Client) UpdateResolver(ctx context.Context, resolver string, body io.Reader) error

func (*Client) UpdateService

func (c *Client) UpdateService(ctx context.Context, service string, body io.Reader) error

type Option

type Option func(opts *Options)

func WithTimeout

func WithTimeout(timeout time.Duration) Option

func WithUserinfo

func WithUserinfo(userinfo *url.Userinfo) Option

type Options

type Options struct {
	Userinfo *url.Userinfo
	Timeout  time.Duration
}

Jump to

Keyboard shortcuts

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