maintenance

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MPL-2.0 Imports: 34 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

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

Server implements machine.MachineServiceServer, network.NetworkService, and storage.StorageServiceServer.

func New

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

New initializes and returns a Server.

func (*Server) ApplyConfiguration

ApplyConfiguration implements machine.MachineServiceServer.

func (*Server) GenerateClientConfiguration

GenerateClientConfiguration implements the machine.MachineServiceServer interface.

func (*Server) GenerateConfiguration

GenerateConfiguration implements the machine.MachineServiceServer interface.

func (*Server) MetaDelete

MetaDelete implements the machine.MachineServiceServer interface.

func (*Server) MetaWrite

MetaWrite implements the machine.MachineServiceServer interface.

func (*Server) Register

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

Register implements the factory.Registrator interface.

func (*Server) Reset

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

Reset resets the node.

func (*Server) Upgrade

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

Upgrade initiates an upgrade.

func (*Server) Version

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

Version implements the machine.MachineServer interface.

type TLSProvider

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

TLSProvider provides TLS configuration for maintenance service.

func NewTLSProvider

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

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

GetCA implements tls.CertificateProvider interface.

func (*TLSProvider) GetCACertPool

func (provider *TLSProvider) GetCACertPool() (*x509.CertPool, error)

GetCACertPool implements tls.CertificateProvider interface.

func (*TLSProvider) GetCertificate

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

GetCertificate implements tls.CertificateProvider interface.

func (*TLSProvider) GetClientCertificate

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

GetClientCertificate implements tls.CertificateProvider interface.

func (*TLSProvider) TLSConfig

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

TLSConfig generates server-side tls.Config.

func (*TLSProvider) Update

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