sshca

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL