juju: github.com/juju/juju/api/annotations Index | Files

package annotations

import "github.com/juju/juju/api/annotations"


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client allows access to the annotations API end point.

func NewClient Uses

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the annotations API.

func (*Client) Get Uses

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

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

func (*Client) Set Uses

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

Set sets entity annotation pairs.

Package annotations imports 3 packages (graph) and is imported by 23 packages. Updated 2018-06-01. Refresh now. Tools for package owners.