Documentation ¶
Index ¶
- func InjectController(c runtime.Controller)
- type Server
- func (s *Server) ApplyConfiguration(ctx context.Context, in *machine.ApplyConfigurationRequest) (*machine.ApplyConfigurationResponse, error)
- func (s *Server) GenerateClientConfiguration(ctx context.Context, in *machine.GenerateClientConfigurationRequest) (*machine.GenerateClientConfigurationResponse, error)
- func (s *Server) GenerateConfiguration(ctx context.Context, in *machine.GenerateConfigurationRequest) (*machine.GenerateConfigurationResponse, error)
- func (s *Server) Register(obj *grpc.Server)
- func (s *Server) Reset(ctx context.Context, in *machine.ResetRequest) (reply *machine.ResetResponse, err error)
- func (s *Server) Upgrade(ctx context.Context, in *machine.UpgradeRequest) (reply *machine.UpgradeResponse, err error)
- func (s *Server) Version(ctx context.Context, in *emptypb.Empty) (*machine.VersionResponse, error)
- type TLSProvider
- func (provider *TLSProvider) GetCA() ([]byte, error)
- func (provider *TLSProvider) GetCertificate(h *stdlibtls.ClientHelloInfo) (*stdlibtls.Certificate, error)
- func (provider *TLSProvider) GetClientCertificate(*stdlibtls.CertificateRequestInfo) (*stdlibtls.Certificate, error)
- func (provider *TLSProvider) TLSConfig() (*stdlibtls.Config, error)
- func (provider *TLSProvider) Update(maintenanceCerts *secrets.MaintenanceServiceCerts) error
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 (*Server) ApplyConfiguration ¶ added in v1.5.0
func (s *Server) ApplyConfiguration(ctx context.Context, in *machine.ApplyConfigurationRequest) (*machine.ApplyConfigurationResponse, error)
ApplyConfiguration implements machine.MachineService.
func (*Server) GenerateClientConfiguration ¶ added in v1.5.0
func (s *Server) GenerateClientConfiguration(ctx context.Context, in *machine.GenerateClientConfigurationRequest) (*machine.GenerateClientConfigurationResponse, error)
GenerateClientConfiguration implements the machine.MachineServer interface.
func (*Server) GenerateConfiguration ¶ added in v1.5.0
func (s *Server) GenerateConfiguration(ctx context.Context, in *machine.GenerateConfigurationRequest) (*machine.GenerateConfigurationResponse, error)
GenerateConfiguration implements the machine.MachineServer 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.
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.