annotations

package
v0.0.0-...-0a271de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client allows access to the annotations API end point.

func NewClient

func NewClient(st base.APICallCloser, options ...Option) *Client

NewClient creates a new client for accessing the annotations API.

func (*Client) Get

func (c *Client) Get(ctx context.Context, tags []string) ([]params.AnnotationsGetResult, error)

Get returns annotations that have been set on the given entities.

func (*Client) Set

func (c *Client) Set(ctx context.Context, annotations map[string]map[string]string) ([]params.ErrorResult, error)

Set sets entity annotation pairs.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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