admin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasArgs

type AliasArgs struct {
	Endpoint string `json:"endpoint"`
	Alias    string `json:"alias"`
}

AliasArgs are the arguments for calling Alias.

type AliasChainArgs

type AliasChainArgs struct {
	Chain string `json:"chain"`
	Alias string `json:"alias"`
}

AliasChainArgs are the arguments for calling AliasChain.

type Client

type Client struct {
	Requester rpc.EndpointRequester
}

func NewClient

func NewClient(uri string) *Client

func (*Client) Alias

func (c *Client) Alias(ctx context.Context, endpoint, alias string, options ...rpc.Option) error

func (*Client) AliasChain

func (c *Client) AliasChain(ctx context.Context, chain, alias string, options ...rpc.Option) error

func (*Client) DBGet

func (c *Client) DBGet(ctx context.Context, key []byte, options ...rpc.Option) ([]byte, error)

func (*Client) GetChainAliases

func (c *Client) GetChainAliases(ctx context.Context, chain string, options ...rpc.Option) ([]string, error)

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context, options ...rpc.Option) (interface{}, error)

func (*Client) GetLoggerLevel

func (c *Client) GetLoggerLevel(
	ctx context.Context,
	loggerName string,
	options ...rpc.Option,
) (map[string]LogAndDisplayLevels, error)

func (*Client) ListVMs

func (c *Client) ListVMs(ctx context.Context, options ...rpc.Option) (map[string]VMInfo, error)

func (*Client) Load

func (c *Client) Load(ctx context.Context, path string, options ...rpc.Option) error

func (*Client) LoadVMs

func (c *Client) LoadVMs(ctx context.Context, options ...rpc.Option) (map[ids.ID][]string, map[ids.ID]string, error)

func (*Client) LockProfile

func (c *Client) LockProfile(ctx context.Context, options ...rpc.Option) error

func (*Client) MemoryProfile

func (c *Client) MemoryProfile(ctx context.Context, options ...rpc.Option) error

func (*Client) SetLoggerLevel

func (c *Client) SetLoggerLevel(
	ctx context.Context,
	loggerName,
	logLevel,
	displayLevel string,
	options ...rpc.Option,
) (map[string]LogAndDisplayLevels, error)

func (*Client) Snapshot

func (c *Client) Snapshot(ctx context.Context, path string, since uint64, options ...rpc.Option) (uint64, error)

func (*Client) Stacktrace

func (c *Client) Stacktrace(ctx context.Context, options ...rpc.Option) error

func (*Client) StartCPUProfiler

func (c *Client) StartCPUProfiler(ctx context.Context, options ...rpc.Option) error

func (*Client) StopCPUProfiler

func (c *Client) StopCPUProfiler(ctx context.Context, options ...rpc.Option) error

type DBGetArgs

type DBGetArgs struct {
	Key string `json:"key"`
}

DBGetArgs are the arguments for dbGet.

type DBGetReply

type DBGetReply struct {
	Value string `json:"value"`
}

DBGetReply is the reply for dbGet.

type GetChainAliasesArgs

type GetChainAliasesArgs struct {
	Chain string `json:"chain"`
}

GetChainAliasesArgs are the arguments for calling GetChainAliases.

type GetChainAliasesReply

type GetChainAliasesReply struct {
	Aliases []string `json:"aliases"`
}

GetChainAliasesReply are the aliases of the given chain.

type GetLoggerLevelArgs

type GetLoggerLevelArgs struct {
	LoggerName string `json:"loggerName"`
}

GetLoggerLevelArgs are the arguments for calling GetLoggerLevel.

type GetTrackedChainsReply

type GetTrackedChainsReply struct {
	TrackedChains []string `json:"trackedChains"`
}

GetTrackedChainsReply is the reply for getting tracked chains.

type ListVMsReply

type ListVMsReply struct {
	VMs map[string]VMInfo `json:"vms"`
}

ListVMsReply is the reply for listVMs.

type LoadArgs

type LoadArgs struct {
	Path string `json:"path"`
}

LoadArgs are the arguments for load.

type LoadVMsReply

type LoadVMsReply struct {
	NewVMs        map[ids.ID][]string `json:"newVMs"`
	FailedVMs     map[ids.ID]string   `json:"failedVMs,omitempty"`
	ChainsRetried int                 `json:"chainsRetried,omitempty"`
}

LoadVMsReply is the response from loading VMs.

type LogAndDisplayLevels

type LogAndDisplayLevels struct {
	LogLevel     log.Level `json:"logLevel"`
	DisplayLevel log.Level `json:"displayLevel"`
}

LogAndDisplayLevels holds log and display levels for a logger.

type LoggerLevelReply

type LoggerLevelReply struct {
	LoggerLevels map[string]LogAndDisplayLevels `json:"loggerLevels"`
}

LoggerLevelReply is the reply for log level calls.

type SetLoggerLevelArgs

type SetLoggerLevelArgs struct {
	LoggerName   string     `json:"loggerName"`
	LogLevel     *log.Level `json:"logLevel"`
	DisplayLevel *log.Level `json:"displayLevel"`
}

SetLoggerLevelArgs are the arguments for calling SetLoggerLevel.

type SetTrackedChainsArgs

type SetTrackedChainsArgs struct {
	Chains []string `json:"chains"`
}

SetTrackedChainsArgs are the arguments for setting tracked chains.

type SetTrackedChainsReply

type SetTrackedChainsReply struct {
	TrackedChains []string `json:"trackedChains"`
}

SetTrackedChainsReply is the reply for setting tracked chains.

type SnapshotArgs

type SnapshotArgs struct {
	Path  string `json:"path"`
	Since uint64 `json:"since"`
}

SnapshotArgs are the arguments for snapshot.

type SnapshotReply

type SnapshotReply struct {
	Success bool   `json:"success"`
	Version uint64 `json:"version"`
}

SnapshotReply is the response from snapshot.

type VMInfo

type VMInfo struct {
	ID      string   `json:"id"`
	Aliases []string `json:"aliases"`
	Path    string   `json:"path,omitempty"`
}

VMInfo describes a VM.

Jump to

Keyboard shortcuts

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