juju: github.com/juju/juju/apiserver/facades/client/annotations Index | Files

package annotations

import "github.com/juju/juju/apiserver/facades/client/annotations"

Index

Package Files

client.go state.go

type API Uses

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

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

func NewAPI Uses

func NewAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*API, error)

NewAPI returns a new charm annotator API facade.

func (*API) Get Uses

func (api *API) Get(args params.Entities) params.AnnotationsGetResults

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 Uses

func (api *API) Set(args params.AnnotationsSet) params.ErrorResults

Set stores annotations for given entities

type Annotations Uses

type Annotations interface {
    Get(args params.Entities) params.AnnotationsGetResults
    Set(args params.AnnotationsSet) params.ErrorResults
}

Annotations defines the methods on the service API end point.

Package annotations imports 7 packages (graph) and is imported by 3 packages. Updated 2019-08-23. Refresh now. Tools for package owners.