Documentation ¶
Index ¶
- func InjectController(c runtime.Controller)
- type Server
- func (s *Server) ApplyConfiguration(_ context.Context, in *machine.ApplyConfigurationRequest) (*machine.ApplyConfigurationResponse, error)
- func (s *Server) GenerateClientConfiguration(context.Context, *machine.GenerateClientConfigurationRequest) (*machine.GenerateClientConfigurationResponse, error)
- func (s *Server) GenerateConfiguration(ctx context.Context, in *machine.GenerateConfigurationRequest) (*machine.GenerateConfigurationResponse, error)
- func (s *Server) MetaDelete(ctx context.Context, req *machine.MetaDeleteRequest) (*machine.MetaDeleteResponse, error)
- func (s *Server) MetaWrite(ctx context.Context, req *machine.MetaWriteRequest) (*machine.MetaWriteResponse, error)
- func (s *Server) Register(obj *grpc.Server)
- func (s *Server) Reset(ctx context.Context, in *machine.ResetRequest) (*machine.ResetResponse, error)
- func (s *Server) Upgrade(ctx context.Context, in *machine.UpgradeRequest) (reply *machine.UpgradeResponse, err error)
- func (s *Server) Version(ctx context.Context, _ *emptypb.Empty) (*machine.VersionResponse, error)
- type TLSProvider
- func (provider *TLSProvider) GetCA() ([]byte, error)
- func (provider *TLSProvider) GetCACertPool() (*x509.CertPool, 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.MachineServiceServer, network.NetworkService, and storage.StorageServiceServer.
func (*Server) ApplyConfiguration ¶ added in v1.5.0
func (s *Server) ApplyConfiguration(_ context.Context, in *machine.ApplyConfigurationRequest) (*machine.ApplyConfigurationResponse, error)
ApplyConfiguration implements machine.MachineServiceServer.
func (*Server) GenerateClientConfiguration ¶ added in v1.5.0
func (s *Server) GenerateClientConfiguration(context.Context, *machine.GenerateClientConfigurationRequest) (*machine.GenerateClientConfigurationResponse, error)
GenerateClientConfiguration implements the machine.MachineServiceServer 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.MachineServiceServer interface.
func (*Server) MetaDelete ¶ added in v1.6.0
func (s *Server) MetaDelete(ctx context.Context, req *machine.MetaDeleteRequest) (*machine.MetaDeleteResponse, error)
MetaDelete implements the machine.MachineServiceServer interface.
func (*Server) MetaWrite ¶ added in v1.6.0
func (s *Server) MetaWrite(ctx context.Context, req *machine.MetaWriteRequest) (*machine.MetaWriteResponse, error)
MetaWrite implements the machine.MachineServiceServer interface.
func (*Server) Reset ¶ added in v1.5.0
func (s *Server) Reset(ctx context.Context, in *machine.ResetRequest) (*machine.ResetResponse, 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) GetCACertPool ¶ added in v1.7.0
func (provider *TLSProvider) GetCACertPool() (*x509.CertPool, error)
GetCACertPool 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.