query

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentPath

func DeploymentPath(id types.DeploymentID) string

DeploymentPath return deployment path of given deployment id for queries

func NewQuerier

func NewQuerier(keeper keeper.Keeper) sdk.Querier

NewQuerier creates and returns a new deployment querier instance

func ParseGroupPath

func ParseGroupPath(parts []string) (types.GroupID, error)

ParseGroupPath returns GroupID details with provided queries, and return error if occured due to wrong query

Types

type Client

type Client interface {
	Deployments(types.DeploymentFilters) (Deployments, error)
	Deployment(types.DeploymentID) (Deployment, error)
	Group(types.GroupID) (Group, error)
}

Client interface

func NewClient

func NewClient(ctx context.CLIContext, key string) Client

NewClient creates a client instance with provided context and key

type Deployment

type Deployment struct {
	types.Deployment `json:"deployment"`
	Groups           []types.Group `json:"groups"`
}

Deployment stores deployment and groups details

func (Deployment) String

func (d Deployment) String() string

type Deployments

type Deployments []Deployment

Deployments represents slice of deployment struct

func (Deployments) String

func (ds Deployments) String() string

type Group

type Group types.Group

Group stores group ID, state and other specifications

type RawClient

type RawClient interface {
	Deployments(types.DeploymentFilters) ([]byte, error)
	Deployment(types.DeploymentID) ([]byte, error)
	Group(types.GroupID) ([]byte, error)
}

RawClient interface

func NewRawClient

func NewRawClient(ctx context.CLIContext, key string) RawClient

NewRawClient creates a raw client instance with provided context and key

Jump to

Keyboard shortcuts

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