Documentation ¶
Index ¶
Constants ¶
View Source
const (
GithubJWTAudience = "nscloud.dev/inline-token"
)
Variables ¶
View Source
var ErrRelogin = fnerrors.New("not logged in, please run `ns login`")
Functions ¶
func StoreMarshalledUser ¶ added in v0.0.136
func StoreTenantToken ¶ added in v0.0.145
Types ¶
type Token ¶ added in v0.0.145
type Token struct {
TenantToken string `json:"tenant_token,omitempty"`
}
func LoadTenantToken ¶ added in v0.0.145
type UserAuth ¶ added in v0.0.136
type UserAuth struct { Username string `json:"username,omitempty"` Org string `json:"org,omitempty"` // The organization this user is acting as. Only really relevant for robot accounts which authenticate against a repository. InternalOpaque []byte `json:"opaque,omitempty"` Clerk *clerk.State `json:"clerk,omitempty"` IsGithubAction bool `json:"is_github_action,omitempty"` }
Click to show internal directories.
Click to hide internal directories.