httpclient

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 7 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 {
	*client.Client
}

Client is a credential HTTP client that wraps the base HTTP client and provides typed methods for interacting with the credential API.

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

New creates a new credential HTTP client with the given base URL and options. The url parameter should point to the credential API endpoint, e.g. "http://localhost:8080/api/credential".

func (*Client) CreateCredential

func (c *Client) CreateCredential(ctx context.Context, credential schema.CredentialCreate) (*schema.Credential, error)

func (*Client) DeleteCredential

func (c *Client) DeleteCredential(ctx context.Context, key schema.CredentialKey) (*schema.Credential, error)

func (*Client) GetCredential

func (c *Client) GetCredential(ctx context.Context, key schema.CredentialKey, passphrase string, result any) error

func (*Client) ListCredentials

func (c *Client) ListCredentials(ctx context.Context, req schema.CredentialListRequest) (*schema.CredentialList, error)

func (*Client) RotateCredential

func (c *Client) RotateCredential(ctx context.Context, key schema.CredentialKey) (*schema.Credential, error)

Jump to

Keyboard shortcuts

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