annotations

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type API

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

API implements the service interface and is the concrete implementation of the api end point.

func (*API) Get

Get returns annotations for given entities. If annotations cannot be retrieved for a given entity, an error is returned. Each entity is treated independently and, hence, will fail or succeed independently.

func (*API) Set

Set stores annotations for given entities

type AnnotationService

type AnnotationService interface {
	// GetCharmAnnotations returns the annotations for the given ID.
	GetAnnotations(context.Context, annotations.ID) (map[string]string, error)

	// GetCharmAnnotations returns the annotations for the given ID.
	GetCharmAnnotations(context.Context, annotation.GetCharmArgs) (map[string]string, error)

	// SetAnnotations sets the annotations for the given ID.
	SetAnnotations(context.Context, annotations.ID, map[string]string) error

	// SetCharmAnnotations sets the annotations for the given ID.
	SetCharmAnnotations(context.Context, annotation.GetCharmArgs, map[string]string) error
}

AnnotationService defines the methods on the annotation service API end point.

Jump to

Keyboard shortcuts

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