go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vtctld Index | Files

package vtctld

import "gopkg.in/src-d/go-vitess.v1/vt/vtctld"

Package vtctld contains all the code to expose a vtctld server based on the provided topo.Server.

Package vtctld contains all the code to expose a vtctld server based on the provided topo.Server.

Index

Package Files

action_repository.go api.go debug_health.go explorer.go realtime_status.go tablet_data.go tablet_stats_cache.go vtctld.go workflow.go

func InitVtctld Uses

func InitVtctld(ts *topo.Server)

InitVtctld initializes all the vtctld functionnality.

func RegisterDebugHealthHandler Uses

func RegisterDebugHealthHandler(ts *topo.Server)

RegisterDebugHealthHandler register a debug health http endpoint for a vtcld server

type ActionRepository Uses

type ActionRepository struct {
    // contains filtered or unexported fields
}

ActionRepository is a repository of actions that can be performed on a {Keyspace,Shard,Tablet}. Note that the registered action methods will be passed an *http.Request on which ParseForm() has already succeeded.

func NewActionRepository Uses

func NewActionRepository(ts *topo.Server) *ActionRepository

NewActionRepository creates and returns a new ActionRepository, with no actions.

func (*ActionRepository) ApplyKeyspaceAction Uses

func (ar *ActionRepository) ApplyKeyspaceAction(ctx context.Context, actionName, keyspace string, r *http.Request) *ActionResult

ApplyKeyspaceAction applies the provided action to the keyspace.

func (*ActionRepository) ApplyShardAction Uses

func (ar *ActionRepository) ApplyShardAction(ctx context.Context, actionName, keyspace, shard string, r *http.Request) *ActionResult

ApplyShardAction applies the provided action to the shard.

func (*ActionRepository) ApplyTabletAction Uses

func (ar *ActionRepository) ApplyTabletAction(ctx context.Context, actionName string, tabletAlias *topodatapb.TabletAlias, r *http.Request) *ActionResult

ApplyTabletAction applies the provided action to the tablet.

func (*ActionRepository) RegisterKeyspaceAction Uses

func (ar *ActionRepository) RegisterKeyspaceAction(name string, method actionKeyspaceMethod)

RegisterKeyspaceAction registers a new action on a keyspace.

func (*ActionRepository) RegisterShardAction Uses

func (ar *ActionRepository) RegisterShardAction(name string, method actionShardMethod)

RegisterShardAction registers a new action on a shard.

func (*ActionRepository) RegisterTabletAction Uses

func (ar *ActionRepository) RegisterTabletAction(name, role string, method actionTabletMethod)

RegisterTabletAction registers a new action on a tablet.

type ActionResult Uses

type ActionResult struct {
    Name       string
    Parameters string
    Output     string
    Error      bool
}

ActionResult contains the result of an action. If Error, the action failed.

type Result Uses

type Result struct {
    Data     string
    Children []string
    Error    string
}

Result is what the backendExplorer returns. It represents one directory node. It is exported so the JSON encoder can print it.

Package vtctld imports 38 packages (graph). Updated 2019-06-13. Refresh now. Tools for package owners.