aa

package
v0.0.0-...-f62483c Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policies

type Policies struct {
	Items []Policy  `json:"items,omitempty"`
	Links api.Links `json:"links,omitempty"`
}

type Policy

type Policy struct {
	ID       string    `json:"id,omitempty"`
	Name     string    `json:"name,omitempty"`
	Location string    `json:"location,omitempty"`
	Links    api.Links `json:"links,omitempty"`
}

type Service

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

func New

func New(client api.HTTP) *Service

func (*Service) Create

func (s *Service) Create(name, location string) (*Policy, error)

func (*Service) Delete

func (s *Service) Delete(id string) error

func (*Service) Get

func (s *Service) Get(id string) (*Policy, error)

func (*Service) GetAll

func (s *Service) GetAll() (*Policies, error)

func (*Service) Update

func (s *Service) Update(id string, name string) (*Policy, error)

Jump to

Keyboard shortcuts

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