etcd

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ETCDClient *etcdclient.Client
}

Client represents radius secret client to manage radius secret.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, name string) error

Delete deletes a secret from the etcd store and returns an error if the secret is not found.

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) ([]byte, error)

Get retrieves a secret from etcd given a name and returns it as a byte slice, or returns an error if the secret is not found or an invalid argument is provided.

func (*Client) Save

func (c *Client) Save(ctx context.Context, name string, value []byte) error

Save checks if the name and value of the secret are valid and saves the value in etcd, returning an error if unsuccessful.

Jump to

Keyboard shortcuts

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