config

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssumeRole

type AssumeRole struct {
	Tags              map[string]string
	RoleARN           string
	ExternalID        string
	Policy            string
	SessionName       string
	SourceIdentity    string
	PolicyARNs        []string
	TransitiveTagKeys []string
	Duration          time.Duration
}

type Config

type Config struct {
	AssumeRole       *AssumeRole
	ProxyPort        *int
	PublicKey        string
	PrivateKey       string
	BaseURL          string
	RealmBaseURL     string
	TerraformVersion string
}

Config contains the configurations needed to use SDKs

func (*Config) NewClient

func (c *Config) NewClient(ctx context.Context) (any, error)

NewClient func...

type DSCommon

type DSCommon struct {
	Client         *MongoDBClient
	DataSourceName string
}

DSCommon is used as an embedded struct for all framework data sources. Implements the following plugin-framework defined functions: - Metadata - Configure Client is left empty and populated by the framework when envoking Configure method. DataSourceName must be defined when creating an instance of a data source.

func (*DSCommon) Configure

func (*DSCommon) Metadata

type MongoDBClient

type MongoDBClient struct {
	Atlas            *matlasClient.Client
	AtlasV2          *admin.APIClient
	Atlas20231115008 *admin20231115008.APIClient // Needed to avoid breaking changes in federated_settings_identity_provider resource.
	Config           *Config
}

MongoDBClient contains the mongodbatlas clients and configurations

func (*MongoDBClient) GetRealmClient

func (c *MongoDBClient) GetRealmClient(ctx context.Context) (*realm.Client, error)

type PlatformVersion added in v1.16.0

type PlatformVersion struct {
	Name    string
	Version string
}

type RSCommon

type RSCommon struct {
	Client       *MongoDBClient
	ResourceName string
}

RSCommon is used as an embedded struct for all framework resources. Implements the following plugin-framework defined functions: - Metadata - Configure Client is left empty and populated by the framework when envoking Configure method. ResourceName must be defined when creating an instance of a resource.

func (*RSCommon) Configure

func (*RSCommon) Metadata

type SecretData

type SecretData struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL