resource

package
v0.0.0-...-38655de Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Storage driver.Storager
}

func (*Config) Add

func (c *Config) Add(name, rType, rValue string, rOptions []string) error

func (*Config) AddToCollection

func (c *Config) AddToCollection(resource, collection string) error

func (*Config) Count

func (c *Config) Count(rType string) int

func (*Config) End

func (c *Config) End()

func (*Config) Find

func (c *Config) Find(name string) bool

func (*Config) List

func (c *Config) List(filters map[string]string) (map[types.Resource][]string, error)

func (*Config) Remove

func (c *Config) Remove(name string) error

func (*Config) RemoveFromCollection

func (c *Config) RemoveFromCollection(resource, collection string) error

type Resource

type Resource interface {
	Add(name, rType, rValue string, rOptions []string) error
	Remove(name string) error
	List(filters map[string]string) (map[types.Resource][]string, error)
	Count(rType string) int
	Find(name string) bool
	AddToCollection(resource, collection string) error
	RemoveFromCollection(resource, collection string) error
	End()
}

func New

func New(driver, options string) (Resource, error)

Jump to

Keyboard shortcuts

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