Documentation ¶
Index ¶
- func CertificateRequestText(csr *x509.CertificateRequest) (string, error)
- func CertificateText(cert *x509.Certificate, printPEM bool) (string, error)
- func ParsePath(p string) (*types.Path, error)
- func SystemRebootStatusTable(rsps []*systemRebootStatusResponse) (string, error)
- type App
- func (a *App) CertCanGenerateCSR(ctx context.Context, t *Target) (bool, error)
- func (a *App) CertGenerateCSR(ctx context.Context, t *Target) (*cert.GenerateCSRResponse, error)
- func (a *App) CertGetCertificates(ctx context.Context, t *Target) (*cert.GetCertificatesResponse, error)
- func (a *App) CertInstall(ctx context.Context, t *Target) error
- func (a *App) CertRotate(ctx context.Context, t *Target) error
- func (a *App) CreateGrpcClient(ctx context.Context, t *Target, opts ...grpc.DialOption) error
- func (a *App) FileGet(ctx context.Context, t *Target) ([]string, error)
- func (a *App) FilePut(ctx context.Context, t *Target) ([]string, error)
- func (a *App) FileRemove(ctx context.Context, t *Target) ([]string, error)
- func (a *App) FileStat(ctx context.Context, t *Target) ([]*fileStatInfo, error)
- func (a *App) GetTargets() (map[string]*Target, error)
- func (a *App) InitCertCanGenerateCSRFlags(cmd *cobra.Command)
- func (a *App) InitCertCreateCaFlags(cmd *cobra.Command)
- func (a *App) InitCertFlags(cmd *cobra.Command)
- func (a *App) InitCertGenerateCSRFlags(cmd *cobra.Command)
- func (a *App) InitCertGetCertificatesFlags(cmd *cobra.Command)
- func (a *App) InitCertInstallFlags(cmd *cobra.Command)
- func (a *App) InitCertLoadCertsCaBundleFlags(cmd *cobra.Command)
- func (a *App) InitCertLoadCertsFlags(cmd *cobra.Command)
- func (a *App) InitCertRevokeCertificatesFlags(cmd *cobra.Command)
- func (a *App) InitCertRotateFlags(cmd *cobra.Command)
- func (a *App) InitFileFlags(cmd *cobra.Command)
- func (a *App) InitFileGetFlags(cmd *cobra.Command)
- func (a *App) InitFilePutFlags(cmd *cobra.Command)
- func (a *App) InitFileRemoveFlags(cmd *cobra.Command)
- func (a *App) InitFileStatFlags(cmd *cobra.Command)
- func (a *App) InitFileTransferFlags(cmd *cobra.Command)
- func (a *App) InitGlobalFlags()
- func (a *App) InitSystemCancelRebootFlags(cmd *cobra.Command)
- func (a *App) InitSystemFlags(cmd *cobra.Command)
- func (a *App) InitSystemPingFlags(cmd *cobra.Command)
- func (a *App) InitSystemRebootFlags(cmd *cobra.Command)
- func (a *App) InitSystemRebootStatusFlags(cmd *cobra.Command)
- func (a *App) InitSystemSetPackageFlags(cmd *cobra.Command)
- func (a *App) InitSystemSwitchControlProcessorFlags(cmd *cobra.Command)
- func (a *App) InitSystemTimeFlags(cmd *cobra.Command)
- func (a *App) InitSystemTracerouteFlags(cmd *cobra.Command)
- func (a *App) InitSystemUpfRestartFlags(cmd *cobra.Command)
- func (a *App) InitTreeFlags(cmd *cobra.Command)
- func (a *App) PreRun(cmd *cobra.Command, args []string) error
- func (a *App) PreRunEFilePut(cmd *cobra.Command, args []string) error
- func (a *App) PreRunESystemPing(cmd *cobra.Command, args []string) error
- func (a *App) PreRunESystemReboot(cmd *cobra.Command, args []string) error
- func (a *App) PreRunESystemTraceRoute(cmd *cobra.Command, args []string) error
- func (a *App) Revoke(ctx context.Context, t *Target) error
- func (a *App) RunECertCanGenerateCSR(cmd *cobra.Command, args []string) error
- func (a *App) RunECertCreateCa(cmd *cobra.Command, args []string) error
- func (a *App) RunECertGetCertificates(cmd *cobra.Command, args []string) error
- func (a *App) RunECertInstall(cmd *cobra.Command, args []string) error
- func (a *App) RunECertRevokeCertificates(cmd *cobra.Command, args []string) error
- func (a *App) RunECertRotate(cmd *cobra.Command, args []string) error
- func (a *App) RunEFileGet(cmd *cobra.Command, args []string) error
- func (a *App) RunEFilePut(cmd *cobra.Command, args []string) error
- func (a *App) RunEFileRemove(cmd *cobra.Command, args []string) error
- func (a *App) RunEFileStat(cmd *cobra.Command, args []string) error
- func (a *App) RunEFileTransfer(cmd *cobra.Command, args []string) error
- func (a *App) RunEGenerateCSR(cmd *cobra.Command, args []string) error
- func (a *App) RunELoadCerts(cmd *cobra.Command, args []string) error
- func (a *App) RunELoadCertsCaBundle(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemCancelReboot(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemPing(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemReboot(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemRebootStatus(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemSetPackage(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemSwitchControlProcessor(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemTime(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemTraceRoute(cmd *cobra.Command, args []string) error
- func (a *App) RunESystemUpfRestart(cmd *cobra.Command, args []string) error
- func (a *App) RunETree(cmd *cobra.Command, args []string) error
- func (a *App) RunEVersion(cmd *cobra.Command, args []string) error
- func (a *App) SystemCancelReboot(ctx context.Context, t *Target, subcomponents []*types.Path) error
- func (a *App) SystemPing(ctx context.Context, t *Target) error
- func (a *App) SystemReboot(ctx context.Context, t *Target, subcomponents []*types.Path) error
- func (a *App) SystemRebootStatus(ctx context.Context, t *Target, subcomponents []*types.Path) (*system.RebootStatusResponse, error)
- func (a *App) SystemSetPackage(ctx context.Context, t *Target) error
- func (a *App) SystemSwitchControlProcessor(ctx context.Context, t *Target) (*system.SwitchControlProcessorResponse, error)
- func (a *App) SystemTime(ctx context.Context, t *Target) (*system.TimeResponse, error)
- func (a *App) SystemTraceRoute(ctx context.Context, t *Target) error
- func (a *App) SystemUpfRestart(ctx context.Context, t *Target, gNBMacAddr string, DNMacAddr string) error
- type Target
- type TargetError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateRequestText ¶
func CertificateRequestText(csr *x509.CertificateRequest) (string, error)
CertificateRequestText returns a human-readable string representation of the certificate request csr. The format is similar (but not identical) to the OpenSSL way of printing certificates.
func CertificateText ¶
func CertificateText(cert *x509.Certificate, printPEM bool) (string, error)
CertificateText returns a human-readable string representation of the certificate cert. The format is similar (but not identical) to the OpenSSL way of printing certificates.
func ParsePath ¶
ParsePath creates a types.Path out of a p string, check if the first element is prefixed by an origin, removes it from the xpath and adds it to the returned Path
func SystemRebootStatusTable ¶
Types ¶
type App ¶
type App struct { Cfn context.CancelFunc RootCmd *cobra.Command Config *config.Config Targets map[string]*Target Logger *log.Entry // contains filtered or unexported fields }
func (*App) CertCanGenerateCSR ¶
func (*App) CertGenerateCSR ¶
func (*App) CertGetCertificates ¶
func (*App) CreateGrpcClient ¶
func (*App) InitCertCanGenerateCSRFlags ¶
func (*App) InitCertCreateCaFlags ¶
func (*App) InitCertFlags ¶
func (*App) InitCertGenerateCSRFlags ¶
func (*App) InitCertGetCertificatesFlags ¶
func (*App) InitCertInstallFlags ¶
func (*App) InitCertLoadCertsCaBundleFlags ¶
func (*App) InitCertLoadCertsFlags ¶
func (*App) InitCertRevokeCertificatesFlags ¶
func (*App) InitCertRotateFlags ¶
func (*App) InitFileFlags ¶
func (*App) InitFileGetFlags ¶
func (*App) InitFilePutFlags ¶
func (*App) InitFileRemoveFlags ¶
func (*App) InitFileStatFlags ¶
func (*App) InitFileTransferFlags ¶
func (*App) InitGlobalFlags ¶
func (a *App) InitGlobalFlags()
func (*App) InitSystemCancelRebootFlags ¶
func (*App) InitSystemFlags ¶
func (*App) InitSystemPingFlags ¶
func (*App) InitSystemRebootFlags ¶
func (*App) InitSystemRebootStatusFlags ¶
func (*App) InitSystemSetPackageFlags ¶
func (*App) InitSystemSwitchControlProcessorFlags ¶
func (*App) InitSystemTimeFlags ¶
func (*App) InitSystemTracerouteFlags ¶
func (*App) InitSystemUpfRestartFlags ¶ added in v0.0.8
func (*App) InitTreeFlags ¶
func (*App) PreRunESystemPing ¶
func (*App) PreRunESystemReboot ¶
func (*App) PreRunESystemTraceRoute ¶
func (*App) RunECertCanGenerateCSR ¶
func (*App) RunECertCreateCa ¶
func (*App) RunECertGetCertificates ¶
func (*App) RunECertInstall ¶
func (*App) RunECertRevokeCertificates ¶
func (*App) RunEFileTransfer ¶
func (*App) RunEGenerateCSR ¶
func (*App) RunELoadCertsCaBundle ¶
func (*App) RunESystemCancelReboot ¶
func (*App) RunESystemReboot ¶
func (*App) RunESystemRebootStatus ¶
func (*App) RunESystemSetPackage ¶
func (*App) RunESystemSwitchControlProcessor ¶
func (*App) RunESystemTraceRoute ¶
func (*App) RunESystemUpfRestart ¶ added in v0.0.8
func (*App) SystemCancelReboot ¶
func (*App) SystemReboot ¶
func (*App) SystemRebootStatus ¶
func (*App) SystemSwitchControlProcessor ¶
func (*App) SystemTime ¶
type Target ¶
type Target struct { Config *config.TargetConfig // contains filtered or unexported fields }
func NewTarget ¶
func NewTarget(tc *config.TargetConfig) *Target
type TargetError ¶
Source Files ¶
- app.go
- cert.go
- certCanGenerateCSR.go
- certCreateCa.go
- certGenerateCSR.go
- certGetCertificates.go
- certInstall.go
- certLoadCerts.go
- certLoadCertsCaBundle.go
- certRevoke.go
- certRotate.go
- certinfo.go
- file.go
- fileGet.go
- filePut.go
- fileRemove.go
- fileStat.go
- fileTransfer.go
- system.go
- systemCancelReboot.go
- systemPing.go
- systemReboot.go
- systemRebootStatus.go
- systemSetPackage.go
- systemSwitchControlProcessor.go
- systemTime.go
- systemTraceRoute.go
- systemUpfRestart.go
- target.go
- tree.go
- types.go
- utils.go
- version.go
Click to show internal directories.
Click to hide internal directories.