maintenance

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectController

func InjectController(c runtime.Controller)

InjectController is used to pass the controller into the maintenance service.

Types

type Server added in v1.5.0

type Server struct {
	machine.UnimplementedMachineServiceServer
	// contains filtered or unexported fields
}

Server implements machine.MachineService, network.NetworkService, and storage.StorageService.

func New added in v1.5.0

func New(cfgCh chan<- config.Provider) *Server

New initializes and returns a `Server`.

func (*Server) ApplyConfiguration added in v1.5.0

ApplyConfiguration implements machine.MachineService.

func (*Server) GenerateClientConfiguration added in v1.5.0

GenerateClientConfiguration implements the machine.MachineServer interface.

func (*Server) GenerateConfiguration added in v1.5.0

GenerateConfiguration implements the machine.MachineServer interface.

func (*Server) Register added in v1.5.0

func (s *Server) Register(obj *grpc.Server)

Register implements the factory.Registrator interface.

func (*Server) Reset added in v1.5.0

func (s *Server) Reset(ctx context.Context, in *machine.ResetRequest) (reply *machine.ResetResponse, err error)

Reset resets the node.

func (*Server) Upgrade added in v1.5.0

func (s *Server) Upgrade(ctx context.Context, in *machine.UpgradeRequest) (reply *machine.UpgradeResponse, err error)

Upgrade initiates an upgrade.

func (*Server) Version added in v1.5.0

func (s *Server) Version(ctx context.Context, in *emptypb.Empty) (*machine.VersionResponse, error)

Version implements the machine.MachineServer interface.

type TLSProvider added in v1.5.0

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

TLSProvider provides TLS configuration for maintenance service.

func NewTLSProvider added in v1.5.0

func NewTLSProvider() *TLSProvider

NewTLSProvider creates a new TLS provider for maintenance service.

The provider expects that the certificates are pushed to it.

func (*TLSProvider) GetCA added in v1.5.0

func (provider *TLSProvider) GetCA() ([]byte, error)

GetCA implements tls.CertificateProvider interface.

func (*TLSProvider) GetCertificate added in v1.5.0

func (provider *TLSProvider) GetCertificate(h *stdlibtls.ClientHelloInfo) (*stdlibtls.Certificate, error)

GetCertificate implements tls.CertificateProvider interface.

func (*TLSProvider) GetClientCertificate added in v1.5.0

func (provider *TLSProvider) GetClientCertificate(*stdlibtls.CertificateRequestInfo) (*stdlibtls.Certificate, error)

GetClientCertificate implements tls.CertificateProvider interface.

func (*TLSProvider) TLSConfig added in v1.5.0

func (provider *TLSProvider) TLSConfig() (*stdlibtls.Config, error)

TLSConfig generates server-side tls.Config.

func (*TLSProvider) Update added in v1.5.0

func (provider *TLSProvider) Update(maintenanceCerts *secrets.MaintenanceServiceCerts) error

Update the certificate in the provider.

Jump to

Keyboard shortcuts

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