Documentation ¶
Index ¶
- Variables
- func DumpRequest(r *http.Request) string
- func DumpResponse(r *http.Response) string
- func HideSecureHeaders(dump []byte) []byte
- type CloudSQLClient
- func (c *CloudSQLClient) Close() error
- func (c *CloudSQLClient) GetOperation(ctx context.Context, project, operation string) (*cloudsql.Operation, error)
- func (c *CloudSQLClient) List(ctx context.Context, project string) (*cloudsql.InstancesListResponse, error)
- func (c *CloudSQLClient) Remove(ctx context.Context, project, dbInstance string) (*cloudsql.Operation, error)
- type Credentials
- type ErrSkipRequest
- type ErrUnknownEndpoint
- type GCPClient
- type IAMClient
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RESecretHeader = regexp.MustCompile(`(?m:^([^:]*(Auth|Security)[^:]*):.*$)`)
)
Functions ¶
func DumpRequest ¶
func DumpResponse ¶
func HideSecureHeaders ¶
Types ¶
type CloudSQLClient ¶
type CloudSQLClient struct {
// contains filtered or unexported fields
}
func NewSQLClient ¶
func NewSQLClient(ctx context.Context, opts ...option.ClientOption) (c *CloudSQLClient, err error)
func (*CloudSQLClient) Close ¶
func (c *CloudSQLClient) Close() error
func (*CloudSQLClient) GetOperation ¶
func (*CloudSQLClient) List ¶
func (c *CloudSQLClient) List(ctx context.Context, project string) (*cloudsql.InstancesListResponse, error)
type Credentials ¶
func (*Credentials) GetNewClientOptions ¶
func (c *Credentials) GetNewClientOptions() (options []option.ClientOption)
func (*Credentials) UseAppDefaultCreds ¶
func (c *Credentials) UseAppDefaultCreds() bool
func (*Credentials) Validate ¶
func (c *Credentials) Validate() error
type ErrSkipRequest ¶
type ErrSkipRequest string
func (ErrSkipRequest) Error ¶
func (err ErrSkipRequest) Error() string
type ErrUnknownEndpoint ¶
type ErrUnknownEndpoint string
func (ErrUnknownEndpoint) Error ¶
func (err ErrUnknownEndpoint) Error() string
type IAMClient ¶
type IAMClient struct {
// contains filtered or unexported fields
}
func NewIAMClient ¶
func (IAMClient) GetIAMService ¶
type Project ¶
type Project struct { Name string Creds *Credentials Locations []string // contains filtered or unexported fields }
func NewProject ¶
func NewProject(creds *Credentials) *Project
func (*Project) CloseClients ¶
func (p *Project) CloseClients()
func (*Project) GetContext ¶
Click to show internal directories.
Click to hide internal directories.