storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 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 GroupList

type GroupList struct {
	Items []model.Group
}

GroupList is a list of groups.

type GroupListOpts

type GroupListOpts struct{}

GroupListOpts are the options for Group list action on the repository.

type GroupRepository

type GroupRepository interface {
	GetGroup(ctx context.Context, id string) (*model.Group, error)
	ListGroups(ctx context.Context, opts GroupListOpts) (*GroupList, error)
}

GroupRepository knows to retrieve resource groups.

type ResourceList

type ResourceList struct {
	Items []model.Resource
}

ResourceList is a list of resources.

type ResourceListOpts

type ResourceListOpts struct{}

ResourceListOpts are the options for Resource list action on the repository.

type ResourceRepository

type ResourceRepository interface {
	GetResource(ctx context.Context, id string) (*model.Resource, error)
	ListResources(ctx context.Context, opts ResourceListOpts) (*ResourceList, error)
}

ResourceRepository knows how to retrieve Resources.

Directories

Path Synopsis
fs
git

Jump to

Keyboard shortcuts

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