Documentation ¶
Index ¶
- Variables
- func DeploymentPath(id types.DeploymentID) string
- func NewQuerier(keeper keeper.Keeper) sdk.Querier
- func ParseDeploymentPath(parts []string) (types.DeploymentID, error)
- func ParseGroupPath(parts []string) (types.GroupID, error)
- type Client
- type Deployment
- type DeploymentFilters
- type Deployments
- type Group
- type GroupFilters
- type RawClient
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeploymentPath ¶
func DeploymentPath(id types.DeploymentID) string
DeploymentPath return deployment path of given deployment id for queries
func NewQuerier ¶
NewQuerier creates and returns a new deployment querier instance
func ParseDeploymentPath ¶ added in v0.7.3
func ParseDeploymentPath(parts []string) (types.DeploymentID, error)
parseDeploymentPath returns DeploymentID details with provided queries, and return error if occurred due to wrong query
Types ¶
type Client ¶
type Client interface { Deployments(DeploymentFilters) (Deployments, error) Deployment(types.DeploymentID) (Deployment, error) Group(types.GroupID) (Group, error) }
Client interface
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 DeploymentFilters ¶ added in v0.7.3
type DeploymentFilters struct { Owner sdk.AccAddress // State flag value given StateFlagVal string // Actual state value decoded from DeploymentStateMap State types.DeploymentState }
DeploymentFilters defines flags for deployment list filter
func (DeploymentFilters) Accept ¶ added in v0.7.3
func (filters DeploymentFilters) Accept(obj types.Deployment, isValidState bool) bool
Accept returns whether deployment filters valid or not
type Deployments ¶
type Deployments []Deployment
Deployments represents slice of deployment struct
func (Deployments) String ¶
func (ds Deployments) String() string
type GroupFilters ¶ added in v0.7.3
type GroupFilters struct { Owner sdk.AccAddress // State flag value given StateFlagVal string // Actual state value decoded from GroupStateMap State types.GroupState }
GroupFilters defines flags for group list filter
type RawClient ¶
type RawClient interface { Deployments(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
Click to show internal directories.
Click to hide internal directories.