reg

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrator

type Registrator struct {
	Data *userdata.UserData
}

Registrator is the concrete type that implements the factory.Registrator and proto.OSDServer interfaces.

func (*Registrator) Dmesg

func (r *Registrator) Dmesg(ctx context.Context, in *empty.Empty) (data *proto.Data, err error)

Dmesg implements the proto.OSDServer interface. The klogctl syscall is used to read from the ring buffer at /proc/kmsg by taking the SYSLOG_ACTION_READ_ALL action. This action reads all messages remaining in the ring buffer non-destructively.

func (*Registrator) Kubeconfig

func (r *Registrator) Kubeconfig(ctx context.Context, in *empty.Empty) (data *proto.Data, err error)

Kubeconfig implements the proto.OSDServer interface. The admin kubeconfig is generated by kubeadm and placed at /etc/kubernetes/admin.conf. This method returns the contents of the generated admin.conf in the response.

func (*Registrator) Logs

func (r *Registrator) Logs(req *proto.LogsRequest, l proto.OSD_LogsServer) (err error)

Logs implements the proto.OSDServer interface. Service or container logs can be requested and the contents of the log file are streamed in chunks.

func (*Registrator) Processes

func (r *Registrator) Processes(ctx context.Context, in *empty.Empty) (reply *proto.ProcessesReply, err error)

Processes implements the proto.OSDServer interface.

func (*Registrator) Reboot

func (r *Registrator) Reboot(ctx context.Context, in *empty.Empty) (reply *proto.RebootReply, err error)

Reboot implements the proto.OSDServer interface.

func (*Registrator) Register

func (r *Registrator) Register(s *grpc.Server)

Register implements the factory.Registrator interface.

func (*Registrator) Reset

func (r *Registrator) Reset(ctx context.Context, in *empty.Empty) (reply *proto.ResetReply, err error)

Reset implements the proto.OSDServer interface.

func (*Registrator) Restart

func (r *Registrator) Restart(ctx context.Context, in *proto.RestartRequest) (reply *proto.RestartReply, err error)

Restart implements the proto.OSDServer interface.

func (*Registrator) Version

func (r *Registrator) Version(ctx context.Context, in *empty.Empty) (data *proto.Data, err error)

Version implements the proto.OSDServer interface.

Jump to

Keyboard shortcuts

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