Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvironmentVariable ¶
Types ¶
type ActionsJWT ¶
func (*ActionsJWT) Parse ¶
func (j *ActionsJWT) Parse()
func (*ActionsJWT) PrettyPrintClaims ¶
func (j *ActionsJWT) PrettyPrintClaims() string
type ActionsOIDCClient ¶
type ActionsOIDCClient struct { // the url to fetch the jwt TokenRequestURL string // the audience for the jwt Audience string // the token used to retrieve the jwt, not the jwt RequestToken string }
func DefaultOIDCClient ¶
func DefaultOIDCClient(audience string) ActionsOIDCClient
func NewActionsOIDCClient ¶
func NewActionsOIDCClient(tokenURL string, audience string, token string) (ActionsOIDCClient, error)
construct a new ActionsOIDCClient
func (*ActionsOIDCClient) BuildTokenURL ¶
func (c *ActionsOIDCClient) BuildTokenURL() error
this function uses an ActionsOIDCClient to build the complete URL to request a jwt
func (*ActionsOIDCClient) GetJWT ¶
func (c *ActionsOIDCClient) GetJWT() (*ActionsJWT, error)
retrieve an actions oidc token
Click to show internal directories.
Click to hide internal directories.