client

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = func() *Configuration {
	return &Configuration{
		Insecure: false,
		Config: acpclient.Config{
			Scopes: []string{"manage_configuration"},
		},
	}
}

Functions

This section is empty.

Types

type Client

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

func InitClient

func InitClient(config *Configuration) (c *Client, err error)

func (*Client) Import added in v1.1.0

func (c *Client) Import(ctx context.Context, workspace string, mode string, data models.Rfc7396PatchOperation) error

func (*Client) Patch added in v1.1.0

func (c *Client) Patch(ctx context.Context, workspace string, mode string, data models.Rfc7396PatchOperation) error

func (*Client) Read added in v1.1.0

func (*Client) String added in v1.1.0

func (c *Client) String() string

func (*Client) Tenant added in v1.3.0

func (c *Client) Tenant() *TenantClient

func (*Client) Write added in v1.1.0

func (c *Client) Write(ctx context.Context, data models.Rfc7396PatchOperation, opts ...api.SourceOpt) error

type Configuration

type Configuration struct {
	// nolint
	acpclient.Config `json:",inline,squash"`

	Insecure bool `json:"insecure"`
}

type TenantClient added in v1.3.0

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

func (*TenantClient) Import added in v1.3.0

func (*TenantClient) Patch added in v1.3.0

func (*TenantClient) Read added in v1.3.0

func (*TenantClient) String added in v1.3.0

func (t *TenantClient) String() string

func (*TenantClient) Write added in v1.3.0

Jump to

Keyboard shortcuts

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