Documentation ¶
Index ¶
- func ParseProjectID(resourceName string) (string, error)
- func ParseSecretName(resourceName string) (string, error)
- func ParseSecretVersion(resourceName string) string
- func ToAccessSecretVersionRequest(projectID, secretName string) *secretmanagerpb.AccessSecretVersionRequest
- func ToGetSecretRequest(projectID, secretName string) *secretmanagerpb.GetSecretRequest
- type PubSubClient
- type PubSubMessage
- type SecretManagerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseProjectID ¶
func ParseSecretName ¶
func ParseSecretVersion ¶
func ToAccessSecretVersionRequest ¶
func ToAccessSecretVersionRequest(projectID, secretName string) *secretmanagerpb.AccessSecretVersionRequest
func ToGetSecretRequest ¶
func ToGetSecretRequest(projectID, secretName string) *secretmanagerpb.GetSecretRequest
Types ¶
type PubSubClient ¶
type PubSubClient struct {
*pubsub.Subscription
}
func NewPubSubClient ¶
func NewPubSubClient(ctx context.Context, projectID, subscriptionName string) (*PubSubClient, error)
func (*PubSubClient) Consume ¶
func (in *PubSubClient) Consume(ctx context.Context) chan PubSubMessage
type PubSubMessage ¶
type SecretManagerClient ¶
type SecretManagerClient interface { GetSecretData(ctx context.Context, projectID, secretName string) ([]byte, error) GetSecretMetadata(ctx context.Context, projectID, secretName string) (*secretmanagerpb.Secret, error) }
func NewSecretManagerClient ¶
func NewSecretManagerClient(ctx context.Context) (SecretManagerClient, error)
Click to show internal directories.
Click to hide internal directories.