Documentation ¶
Index ¶
Constants ¶
View Source
const (
GithubJWTAudience = "nscloud.dev/inline-token"
)
Variables ¶
View Source
var Workspace string
Functions ¶
func EnsureTokenValidAt ¶ added in v0.0.192
func SetupFlags ¶ added in v0.0.197
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 {
BearerToken string `json:"bearer_token,omitempty"`
}
func FetchTokenFromSpec ¶ added in v0.0.198
func LoadTokenFromPath ¶ added in v0.0.191
func (*Token) UnmarshalJSON ¶ added in v0.0.191
TODO: remove when legacy token.json format is not used anymore.
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.