Documentation ¶
Index ¶
- Constants
- func DescribePublicKeyMode(mode accessgraphv1pb.PublicKeyMode) string
- func NewAuthorizedKey(spec *accessgraphv1pb.AuthorizedKeySpec) (*accessgraphv1pb.AuthorizedKey, error)
- func NewPrivateKey(spec *accessgraphv1pb.PrivateKeySpec) (*accessgraphv1pb.PrivateKey, error)
- func NewPrivateKeyWithName(name string, spec *accessgraphv1pb.PrivateKeySpec) (*accessgraphv1pb.PrivateKey, error)
- func ValidateAuthorizedKey(k *accessgraphv1pb.AuthorizedKey) error
- func ValidatePrivateKey(k *accessgraphv1pb.PrivateKey) error
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 ¶
func NewAuthorizedKey(spec *accessgraphv1pb.AuthorizedKeySpec) (*accessgraphv1pb.AuthorizedKey, error)
NewAuthorizedKey creates a new SSH authorized key resource.
func NewPrivateKey ¶
func NewPrivateKey(spec *accessgraphv1pb.PrivateKeySpec) (*accessgraphv1pb.PrivateKey, error)
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.
Click to show internal directories.
Click to hide internal directories.