accessgraph

package
v0.0.0-...-67058d9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthorizedKeyDefaultKeyTTL is the default TTL for an authorized key.
	AuthorizedKeyDefaultKeyTTL = 8 * time.Hour
)

Variables

This section is empty.

Functions

func DescribePublicKeyMode

func DescribePublicKeyMode(mode accessgraphv1pb.PublicKeyMode) string

DescribePublicKeyMode returns a human-readable description of the public key mode.

func NewAuthorizedKey

NewAuthorizedKey creates a new SSH authorized key resource.

func NewPrivateKey

NewPrivateKey creates a new SSH Private key resource with a generated name based on the spec.

func NewPrivateKeyWithName

func NewPrivateKeyWithName(name string, spec *accessgraphv1pb.PrivateKeySpec) (*accessgraphv1pb.PrivateKey, error)

NewPrivateKeyWithName creates a new SSH Private key resource.

func ValidateAuthorizedKey

func ValidateAuthorizedKey(k *accessgraphv1pb.AuthorizedKey) error

ValidateAuthorizedKey checks that required parameters are set for the specified AuthorizedKey

func ValidatePrivateKey

func ValidatePrivateKey(k *accessgraphv1pb.PrivateKey) error

ValidatePrivateKey checks that required parameters are set for the specified PrivateKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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