Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { // IsAdmin indicates whether the user represented by this struct has been // verified as the Kargo API server's admin user. When this is true, all // other fields should have an empty value. IsAdmin bool // Username is the name of a non-admin user whose credentials have been // successfully verified by the server's authentication middleware. Username string // Groups are the group claims obtained from credentials that have been // successfully verified by the server's authentication middleware. Groups []string // BearerToken is set only in cases where the server's authentication // middleware could not verify the token it was presented with. In this case, // we assume the token to be a valid credential for a Kubernetes user. When // constructing an ad-hoc Kubernetes client, this token will be used directly. // When this is non-empty, all other fields should have an empty value. BearerToken string }
Info represents information about an API user. This is bound to the context by the server's authentication middleware and later retrieved and used to create an ad-hoc Kubernetes client that has the correct level of permissions for the user.
Click to show internal directories.
Click to hide internal directories.