Versions in this module Expand all Collapse all v2 v2.0.0 Apr 23, 2023 Changes in this version + const CertificateBlockType + const CertificateValidity + const ChaosdPkiName + func CreatePhysicalMachine(ctx context.Context, c client.Client, namespace, name, address string, ...) error + func EncodeCertPEM(cert *x509.Certificate) []byte + func GetChaosdCAFileFromCluster(ctx context.Context, namespace string, c client.Client) (caCert *x509.Certificate, caKey crypto.Signer, err error) + func GetChaosdCAFileFromFile(caCertFile, caKeyFile string) (*x509.Certificate, crypto.Signer, error) + func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer) (*x509.Certificate, crypto.Signer, error) + func NewPhysicalMachineCreateCmd() (*cobra.Command, error) + func NewPhysicalMachineGenerateCmd() (*cobra.Command, error) + func NewPhysicalMachineInitCmd() (*cobra.Command, error) + func NewPrivateKey(keyType x509.PublicKeyAlgorithm) (crypto.Signer, error) + func NewSignedCert(key crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer, isCA bool) (*x509.Certificate, error) + func ParseCert(data []byte) (*x509.Certificate, error) + func ParseCertAndKey(certData, keyData []byte) (*x509.Certificate, crypto.Signer, error) + func ParsePrivateKey(data []byte) (crypto.Signer, error) + func WriteCert(pkiPath, name string, cert *x509.Certificate) error + func WriteCertAndKey(pkiPath string, name string, cert *x509.Certificate, key crypto.Signer) error + func WriteKey(pkiPath, name string, key crypto.Signer) error + type PhysicalMachineCreateOptions struct + func (o *PhysicalMachineCreateOptions) Run(args []string) error + func (o *PhysicalMachineCreateOptions) Validate() error + type PhysicalMachineGenerateOptions struct + func (o *PhysicalMachineGenerateOptions) Run() error + func (o *PhysicalMachineGenerateOptions) Validate() error + type PhysicalMachineInitOptions struct + func (o *PhysicalMachineInitOptions) Run(args []string) error + func (o *PhysicalMachineInitOptions) Validate() error + type SshTunnel struct + func NewSshTunnel(ip, port string, user, privateKeyFile string) (*SshTunnel, error) + func (s *SshTunnel) Close() error + func (s *SshTunnel) Open() error + func (s *SshTunnel) SFTP(filename string, data []byte) error