Documentation
¶
Index ¶
Constants ¶
View Source
const (
CloudPlatformRole = "https://www.googleapis.com/auth/cloud-platform"
)
Variables ¶
This section is empty.
Functions ¶
func NewTokenSource ¶
func NewTokenSource(ctx context.Context, auth *v1alpha1.GooglePubSubAuth, projectID string, kube kclient.Client) (oauth2.TokenSource, error)
Types ¶
type IamClient ¶
type IamClient interface {
GenerateAccessToken(ctx context.Context, req *credentialspb.GenerateAccessTokenRequest, opts ...gax.CallOption) (*credentialspb.GenerateAccessTokenResponse, error)
Close() error
}
interface to GCP IAM API.
Click to show internal directories.
Click to hide internal directories.