database

package
v0.0.0-...-9da2307 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Endpoints() ([]models.EndpointEntry, error)
	Policies() ([]models.Policy, error)
	EndpointGroups() ([]models.EndpointGroup, error)
	AddEndpoint(models.EndpointEntry) error
	AddPolicy(models.Policy) error
	DeleteEndpoint(EpId string) error
	DeletePolicy(PolicyId string) error
	GetPolicy(PolicyId string) (models.Policy, error)
	GetEndpoint(EndpointId string) (models.EndpointEntry, error)
	AddEndpointGroup(models.EndpointGroup) error
	DeleteEndpointGroup(GroupId string) error
	GetEndpointGroup(GroupId string) (models.EndpointGroup, error)
}

func Init

func Init(sqlUrl string) (Database, error)

Jump to

Keyboard shortcuts

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