entity

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudAuthArguments

type CloudAuthArguments struct {
	// AuthMode specifies the type of authentication to use, represented by CloudAuthType.
	AuthMode CloudAuthType

	// AccessKey is the Access Key ID for AuthTypeAccessKey mode.
	// It's used along with SecretKey for authentication.
	AccessKey string

	// SecretKey is the Secret Access Key for AuthTypeAccessKey mode.
	// This key should be kept secure and not exposed in logs or other outputs.
	SecretKey string

	// SessionId is the session identifier for the current authentication session.
	// This is often used in temporary credentials scenario.
	SessionId string

	// IAMRole specifies the IAM role to be assumed for AuthTypeIAMRole mode.
	// This role should have the necessary permissions for the intended operations.
	IAMRole string

	// Region specifies the cloud provider's region to which the authentication is scoped.
	// This is essential for services that are region-specific.
	Region string
}

CloudAuthArguments holds the necessary parameters for cloud authentication. The structure accommodates different authentication types and their respective credentials.

type CloudAuthType

type CloudAuthType int

CloudAuthType defines the type of cloud authentication to be used. It's an integer type, making it lightweight and suitable for comparison and indexing.

const (
	// AuthTypeAccessKey indicates authentication via Access Key.
	// This method usually requires an Access Key ID and a Secret Access Key.
	AuthTypeAccessKey CloudAuthType = iota

	// AuthTypeIAMRole indicates authentication using an IAM Role.
	// This method relies on IAM roles for AWS services and resources.
	AuthTypeIAMRole
)

Directories

Path Synopsis
Package messagequeue provides structures and tools for interacting with a message queue system.
Package messagequeue provides structures and tools for interacting with a message queue system.
Package objectstorage provides structures for interacting with an S3-compatible storage system.
Package objectstorage provides structures for interacting with an S3-compatible storage system.
Package pubsub provides structures for publishing messages to topics and managing topic attributes in a messaging system.
Package pubsub provides structures for publishing messages to topics and managing topic attributes in a messaging system.
Package visualanalysis provides cloud-agnostic inputs for image analysis.
Package visualanalysis provides cloud-agnostic inputs for image analysis.

Jump to

Keyboard shortcuts

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