openstack

package
v0.0.0-...-41152cf Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// defaults currently referring to Train
	DefaultComputeV2Microversion      = "2.79"
	DefaultIdentityV3Microversion     = "3.13"
	DefaultBlockStorageV3Microversion = "3.59"
	DefaultImageServiceV2Microversion = "2.9"
)
View Source
const (
	// AuthenticatedClient is the cache key for the openStack authenticated client.
	AuthenticatedClient = "openstack_authenticated_client"

	// IdentityV3 identifies the OpenStack Identity V3 service (Keystone).
	IdentityV3 ServiceType = "openstack_identity_v3"
	// Compute identifies the penStack Compute V2 service (Nova).
	ComputeV2 = "openstack_compute_v2"
	// NetworkV2 identifies the OpenStack Network V2 service (Neutron).
	NetworkV2 = "openstack_network_v2"
	// BlockStorageV3 identifies the OpenStack Block Storage V3 service (Cinder).
	BlockStorageV3 = "openstack_blockstorage_v3"
	// ImageServiceV2 identifies the OpenStack Image Service V2 service (Glance).
	ImageServiceV2 = "openstack_imageservice_v2"
)

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"endpoint_url": {
		Type: schema.TypeString,
	},
	"userid": {
		Type: schema.TypeString,
	},
	"username": {
		Type: schema.TypeString,
	},
	"password": {
		Type: schema.TypeString,
	},
	"region": {
		Type: schema.TypeString,
	},
	"project_id": {
		Type: schema.TypeString,
	},
	"project_name": {
		Type: schema.TypeString,
	},
	"domain_id": {
		Type: schema.TypeString,
	},
	"domain_name": {
		Type: schema.TypeString,
	},
	"access_token": {
		Type: schema.TypeString,
	},
	"app_credential_id": {
		Type: schema.TypeString,
	},

	"app_credential_secret": {
		Type: schema.TypeString,
	},
	"allow_reauth": {
		Type: schema.TypeBool,
	},
	"trace_level": {
		Type: schema.TypeString,
	},
	"identity_v3_microversion": {
		Type: schema.TypeString,
	},
	"compute_v2_microversion": {
		Type: schema.TypeString,
	},
	"network_v2_microversion": {
		Type: schema.TypeString,
	},
	"blockstorage_v3_microversion": {
		Type: schema.TypeString,
	},
	"imageservice_v2_microversion": {
		Type: schema.TypeString,
	},
}
View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) openstackConfig

GetConfig :: retrieve and cast connection config from query data

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

func ToTime

func ToTime(ctx context.Context, d *transform.TransformData) (any, error)

Types

type ServiceType

type ServiceType string

type Time

type Time time.Time

func (*Time) Format

func (t *Time) Format(format string) string

func (*Time) IsZero

func (t *Time) IsZero() bool

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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