Documentation ¶
Index ¶
- type Backend
- func (s *Backend) Exists(request cosmostypes.Request, hash hash.Hash) (bool, error)
- func (s *Backend) FetchOrCreate(request cosmostypes.Request, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
- func (s *Backend) Get(request cosmostypes.Request, hash hash.Hash) (*instance.Instance, error)
- func (s *Backend) List(request cosmostypes.Request, f *api.ListInstanceRequest_Filter) ([]*instance.Instance, error)
- type SDK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v0.17.0
type Backend struct {
// contains filtered or unexported fields
}
Backend is the instance backend.
func NewBackend ¶ added in v0.17.0
func NewBackend(appFactory *cosmos.AppFactory) *Backend
NewBackend returns the backend of the instance sdk.
func (*Backend) Exists ¶ added in v0.17.0
Exists returns true if a specific set of data exists in the database, false otherwise
func (*Backend) FetchOrCreate ¶ added in v0.17.0
func (s *Backend) FetchOrCreate(request cosmostypes.Request, serviceHash hash.Hash, envHash hash.Hash) (*instance.Instance, error)
FetchOrCreate creates a new instance if needed.
func (*Backend) List ¶ added in v0.17.0
func (s *Backend) List(request cosmostypes.Request, f *api.ListInstanceRequest_Filter) ([]*instance.Instance, error)
List returns all instances.
Click to show internal directories.
Click to hide internal directories.