repository

package
v0.0.0-...-1e82369 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init 初始化数据库

Types

type GlobalRepository

type GlobalRepository interface {
	CreateApp(appName string) (*model.App, error)
	DeleteApp(appName string) error
	ListApps(appNames ...string) ([]*model.App, error)

	CreateCluster(appName, clusterName string) (*model.Cluster, error)
	DeleteCluster(appName, clusterName string) error
	ListClusters(appName string) ([]*model.Cluster, error)

	CreateNamespace(appName, clusterName, namespaceName string) (*model.Namespace, error)
	DeleteNamespace(appName, clusterName, namespaceName string) error
	ListNamespace(appName, clusterName string) ([]*model.Namespace, error)

	ListItems(appName, clusterName, namespaceName string) ([]*model.Item, error)
	UpdateItems(appName, clusterName, namespace string, del []*model.Item, update []*model.Item, insert []*model.Item) error
}

type Repository

type Repository interface {
	GlobalRepository
}

func GetRepository

func GetRepository() Repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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