Documentation
¶
Index ¶
- Variables
- type ArkSIASSHCAService
- func (s *ArkSIASSHCAService) DeactivatePreviousCa() error
- func (s *ArkSIASSHCAService) GenerateNewCA() error
- func (s *ArkSIASSHCAService) PublicKey(getPublicKey *sshcamodels.ArkSIAGetSSHPublicKey) (string, error)
- func (s *ArkSIASSHCAService) PublicKeyScript(getPublicKey *sshcamodels.ArkSIAGetSSHPublicKey) (string, error)
- func (s *ArkSIASSHCAService) ReactivatePreviousCa() error
- func (s *ArkSIASSHCAService) ServiceConfig() services.ArkServiceConfig
Constants ¶
This section is empty.
Variables ¶
var ServiceConfig = services.ArkServiceConfig{ ServiceName: "sia-ssh-ca", RequiredAuthenticatorNames: []string{"isp"}, OptionalAuthenticatorNames: []string{}, ActionsConfigurations: map[actions.ArkServiceActionType][]actions.ArkServiceActionDefinition{ actions.ArkServiceActionTypeCLI: { siasshcaactions.CLIAction, }, }, }
ServiceConfig is the configuration for the ArkSIASSHCAService.
var ServiceGenerator = NewArkSIASSHCAService
ServiceGenerator is the function that creates a new instance of the SIA SSH CA service.
Functions ¶
This section is empty.
Types ¶
type ArkSIASSHCAService ¶
type ArkSIASSHCAService struct {
services.ArkService
*services.ArkBaseService
// contains filtered or unexported fields
}
ArkSIASSHCAService is a struct that implements the ArkService interface and provides functionality for SSH CA of SIA.
func NewArkSIASSHCAService ¶
func NewArkSIASSHCAService(authenticators ...auth.ArkAuth) (*ArkSIASSHCAService, error)
NewArkSIASSHCAService creates a new instance of ArkSIASSHCAService with the provided authenticators.
func (*ArkSIASSHCAService) DeactivatePreviousCa ¶
func (s *ArkSIASSHCAService) DeactivatePreviousCa() error
DeactivatePreviousCa Deactivate previous CA key version.
func (*ArkSIASSHCAService) GenerateNewCA ¶
func (s *ArkSIASSHCAService) GenerateNewCA() error
GenerateNewCA generates a new CA key version.
func (*ArkSIASSHCAService) PublicKey ¶
func (s *ArkSIASSHCAService) PublicKey(getPublicKey *sshcamodels.ArkSIAGetSSHPublicKey) (string, error)
PublicKey retrieves the public key for the SSH CA.
func (*ArkSIASSHCAService) PublicKeyScript ¶
func (s *ArkSIASSHCAService) PublicKeyScript(getPublicKey *sshcamodels.ArkSIAGetSSHPublicKey) (string, error)
PublicKeyScript retrieves the public key script for the SSH CA.
func (*ArkSIASSHCAService) ReactivatePreviousCa ¶
func (s *ArkSIASSHCAService) ReactivatePreviousCa() error
ReactivatePreviousCa Deactivate previous CA key version.
func (*ArkSIASSHCAService) ServiceConfig ¶
func (s *ArkSIASSHCAService) ServiceConfig() services.ArkServiceConfig
ServiceConfig returns the service configuration for the ArkSIASSHCAService.