Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPath = errors.New("query: invalid path")
)
Functions ¶
func DeploymentPath ¶
func DeploymentPath(id types.DeploymentID) string
DeploymentPath return deployment path of given deployment id for queries
Types ¶
type Client ¶
type Client interface {
Deployments(DeploymentFilters) (Deployments, error)
Deployment(types.DeploymentID) (Deployment, error)
Group(types.GroupID) (Group, error)
}
Client interface
type Deployment ¶
Deployment stores deployment and groups details
func (Deployment) String ¶
func (d Deployment) String() string
type DeploymentFilters ¶
type DeploymentFilters struct {
Owner sdk.AccAddress
// State flag value given
StateFlagVal string
// Actual state value decoded from DeploymentStateMap
State v1.Deployment_State
}
DeploymentFilters defines flags for deployment list filter
func (DeploymentFilters) Accept ¶
func (filters DeploymentFilters) Accept(obj v1.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 ¶
type GroupFilters struct {
Owner sdk.AccAddress
// State flag value given
StateFlagVal string
// Actual state value decoded from GroupStateMap
State v1beta4.Group_State
}
GroupFilters defines flags for group list filter
Click to show internal directories.
Click to hide internal directories.