reg

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2018 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrator

type Registrator struct{}

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 *proto.ProcessesRequest) (reply *proto.ProcessesReply, err error)

Processes implements the proto.OSDServer interface.

func (*Registrator) Register

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

Register implements the factory.Registrator 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