Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Anonymous = User{ Type: pb.AuthenticationType_ANONYMOUS, Name: "anonymous", }
View Source
var BootstrapToken = User{ Type: pb.AuthenticationType_BOOTSTRAP_TOKEN, Name: "bootstrapToken", }
Functions ¶
Types ¶
type User ¶
type User struct { Type pb.AuthenticationType Name string }
User contains the information of an authenticated user to kmgm HTTPS/gRPC server.
func ClientCert ¶
func FromContext ¶
FromContext returns the user information in ctx if it exists.
func (User) IsAllowedToGetCertificate ¶ added in v0.2.1
func (User) IsAllowedToIssueCertificate ¶
func (User) IsAllowedToSetupCA ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.