Documentation
¶
Index ¶
- func BranchCmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func DemoteCmd(ch *cmdutil.Helper) *cobra.Command
- func DiffCmd(ch *cmdutil.Helper) *cobra.Command
- func KeyspaceCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func PromoteCmd(ch *cmdutil.Helper) *cobra.Command
- func RefreshSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func SchemaCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func SwitchCmd(ch *cmdutil.Helper) *cobra.Command
- func VSchemaCmd(ch *cmdutil.Helper) *cobra.Command
- type Actor
- type BranchDemotionRequest
- type DatabaseBranch
- type DatabaseBranchKeyspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyspaceCmd ¶ added in v0.110.0
VSchemaCmd is the command for showing the VSchema of a branch.
Types ¶
type Actor ¶ added in v0.131.0
type Actor struct {
Name string `header:"name"`
}
Actor represents an actor for an action
type BranchDemotionRequest ¶ added in v0.131.0
type BranchDemotionRequest struct {
ID string `header:"id" json:"id"`
Actor *Actor `header:"actor" json:"actor"`
State string `header:"state" json:"state"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func ToBranchDemotionRequest ¶ added in v0.131.0
func ToBranchDemotionRequest(dr *ps.BranchDemotionRequest) *BranchDemotionRequest
func (*BranchDemotionRequest) MarshalCSVValue ¶ added in v0.131.0
func (d *BranchDemotionRequest) MarshalCSVValue() interface{}
func (*BranchDemotionRequest) MarshalJSON ¶ added in v0.131.0
func (d *BranchDemotionRequest) MarshalJSON() ([]byte, error)
type DatabaseBranch ¶ added in v0.14.0
type DatabaseBranch struct {
Name string `header:"name" json:"name"`
ParentBranch string `header:"parent branch,n/a" json:"parent_branch"`
Production bool `header:"production" json:"production"`
Ready bool `header:"ready" json:"ready"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func ToDatabaseBranch ¶ added in v0.69.0
func ToDatabaseBranch(db *ps.DatabaseBranch) *DatabaseBranch
ToDatabaseBranch returns a struct that prints out the various fields of a database model.
func (*DatabaseBranch) MarshalCSVValue ¶ added in v0.17.0
func (d *DatabaseBranch) MarshalCSVValue() interface{}
func (*DatabaseBranch) MarshalJSON ¶ added in v0.14.0
func (d *DatabaseBranch) MarshalJSON() ([]byte, error)
type DatabaseBranchKeyspace ¶ added in v0.110.0
type DatabaseBranchKeyspace struct {
Name string `header:"name" json:"name"`
Shards int `header:"shards" json:"shards"`
Sharded bool `header:"sharded" json:"sharded"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func ToDatabaseBranchKeyspace ¶ added in v0.110.0
func ToDatabaseBranchKeyspace(ks *ps.Keyspace) *DatabaseBranchKeyspace
ToDatabaseBranch returns a struct that prints out the various fields of a database model.
func (*DatabaseBranchKeyspace) MarshalCSVValue ¶ added in v0.110.0
func (d *DatabaseBranchKeyspace) MarshalCSVValue() interface{}
func (*DatabaseBranchKeyspace) MarshalJSON ¶ added in v0.110.0
func (d *DatabaseBranchKeyspace) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.