Documentation
¶
Index ¶
- Constants
- func Configure(logger hclog.Logger, config interface{}) (schema.ClientMeta, diag.Diagnostics)
- func DOTestHelper(t *testing.T, table *schema.Table)
- func DeleteFilter(meta schema.ClientMeta, _ *schema.Resource) []interface{}
- func IPAddressResolver(path string) schema.ColumnResolver
- func ResolveResourceIdFromUrn(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error
- func ResolveResourceTypeFromUrn(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error
- func SpacesRegionMultiplex(client schema.ClientMeta) []schema.ClientMeta
- type AwsLogger
- type Client
- type Config
- type DoCredentialStruct
- type SpacesCredentialsProvider
- type SpacesEndpointResolver
Constants ¶
View Source
const MaxItemsPerPage = 200
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(logger hclog.Logger, config interface{}) (schema.ClientMeta, diag.Diagnostics)
func DeleteFilter ¶
func DeleteFilter(meta schema.ClientMeta, _ *schema.Resource) []interface{}
func IPAddressResolver ¶
func IPAddressResolver(path string) schema.ColumnResolver
func SpacesRegionMultiplex ¶
func SpacesRegionMultiplex(client schema.ClientMeta) []schema.ClientMeta
Types ¶
type Client ¶
type Client struct { DoClient *godo.Client Regions []string SpacesRegion string CredentialStatus DoCredentialStruct S3 *s3.Client // contains filtered or unexported fields }
func (*Client) WithSpacesRegion ¶
type Config ¶
type Config struct { Token string `hcl:"token,optional"` // SpacesRegions is a list of DO regions to fetch spaces from, if not given we execute on all regions SpacesRegions []string `hcl:"spaces_regions,optional"` // SpacesAccessKey is the secret access token generated in DO control panel SpacesAccessKey string `hcl:"spaces_access_key,optional"` // SpacesAccessKeyId is the unique identifier of the access key generated in the DO control panel SpacesAccessKeyId string `hcl:"spaces_access_key_id,optional"` // SpacesDebugLogging allows enabling AWS S3 request logging on spaces requests SpacesDebugLogging bool `hcl:"spaces_debug_logging,optional"` }
type DoCredentialStruct ¶ added in v0.3.0
type SpacesCredentialsProvider ¶
func (SpacesCredentialsProvider) Retrieve ¶
func (s SpacesCredentialsProvider) Retrieve(ctx context.Context) (aws.Credentials, error)
type SpacesEndpointResolver ¶
type SpacesEndpointResolver struct{}
func (SpacesEndpointResolver) ResolveEndpoint ¶
func (s SpacesEndpointResolver) ResolveEndpoint(_, region string) (aws.Endpoint, error)
Click to show internal directories.
Click to hide internal directories.