Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is the Key-Value controller
func New ¶
func New(kvService kv.Service, sbacService sbac.Service) Controller
New returns a new kv.Controller
func NewWithService ¶
func NewWithService(service Service) Controller
NewWithService returns a new kv.Controller
type LabelObject ¶
type LabelObject struct { Label string `json:"label"` Object interface{} `json:"object"` VersionID string `json:"versionId"` }
LabelObject ...
type LabelVersionID ¶
LabelVersionID ...
type ListObjectsResponse ¶
type ListObjectsResponse struct {
Pairs []LabelObject `json:"pairs"`
}
ListObjectsResponse contains a full json graph
type ListVersionIDsResponse ¶
type ListVersionIDsResponse struct {
Pairs []LabelVersionID `json:"pairs"`
}
ListVersionIDsResponse contains a collection of LabelVersionIDs
type ObjectResponse ¶
type ObjectResponse struct {
Object interface{} `json:"object"`
}
ObjectResponse contains a full json graph
type Service ¶
type Service interface { GetByLabel(label string) (LabelObject, int, error) GetByPrefix(prefix string) ([]LabelObject, int, error) GetVersionID(label string) (string, int, error) GetVersionIDByPrefix(prefixz string) ([]LabelVersionID, int, error) }
Service interface
type VersionIDResponse ¶
type VersionIDResponse struct {
VersionID string `json:"versionId"`
}
VersionIDResponse contains only a version id
Click to show internal directories.
Click to hide internal directories.