config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 16 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
	PublicKey    string
	PrivateKey   string
	BaseURL      string
	RealmBaseURL 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 *atlasSDK.APIClient
	Config  *Config
}

MongoDBClient contains the mongodbatlas clients and configurations

func (*MongoDBClient) GetRealmClient

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

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