Documentation ¶
Index ¶
- func Validate(gormDBName, gormConfig string) error
- type Client
- func (c *Client) Close()
- func (c *Client) Delete(ctx context.Context, k storage.Key) error
- func (c *Client) DeleteAllMatches(ctx context.Context, q storage.Query) error
- func (c *Client) DeleteChildrenOfApi(ctx context.Context, api names.Api) error
- func (c *Client) DeleteChildrenOfProject(ctx context.Context, project names.Project) error
- func (c *Client) DeleteChildrenOfSpec(ctx context.Context, spec names.Spec) error
- func (c *Client) DeleteChildrenOfVersion(ctx context.Context, version names.Version) error
- func (c *Client) Get(ctx context.Context, k storage.Key, v interface{}) error
- func (c *Client) GetRecentSpecRevisions(ctx context.Context, offset int32, projectID, apiID, versionID string) storage.Iterator
- func (c *Client) IsNotFound(err error) bool
- func (c *Client) NewKey(kind, name string) storage.Key
- func (c *Client) NewQuery(kind string) storage.Query
- func (c *Client) Put(ctx context.Context, k storage.Key, v interface{}) (storage.Key, error)
- func (c *Client) Run(ctx context.Context, q storage.Query) storage.Iterator
- type Iterator
- type Key
- type Query
- type Requirement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a connection to a storage provider.
func (*Client) DeleteAllMatches ¶
DeleteAllMatches deletes all entities matching a query.
func (*Client) DeleteChildrenOfApi ¶
DeleteChildrenOfApi deletes all the children of a api.
func (*Client) DeleteChildrenOfProject ¶
DeleteChildrenOfProject deletes all the children of a project.
func (*Client) DeleteChildrenOfSpec ¶ added in v0.2.1
DeleteChildrenOfSpec deletes all the children of a spec.
func (*Client) DeleteChildrenOfVersion ¶
DeleteChildrenOfVersion deletes all the children of a version.
func (*Client) GetRecentSpecRevisions ¶ added in v0.3.0
func (*Client) IsNotFound ¶
IsNotFound returns true if an error is due to an entity not being found.
type Iterator ¶
Iterator can be used to iterate through results of a query.
type Query ¶
type Query struct { Kind string Offset int Order string Requirements []*Requirement }
Query represents a query in a storage provider.
type Requirement ¶
type Requirement struct { Name string Value interface{} }
Requirement adds an equality filter to a query.
Click to show internal directories.
Click to hide internal directories.