blobstore

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceAvailableSpaceInBytes = &schema.Schema{
		Computed:    true,
		Description: "Available space in Bytes",
		Type:        schema.TypeInt,
	}

	DataSourceAvailableSpaceInBytes = ResourceAvailableSpaceInBytes
)
View Source
var (
	ResourceBlobCount = &schema.Schema{
		Computed:    true,
		Description: "Count of blobs",
		Type:        schema.TypeInt,
	}

	DataSourceBlobCount = ResourceBlobCount
)
View Source
var (
	ResourceName = &schema.Schema{
		Description: "Blobstore name",
		Required:    true,
		Type:        schema.TypeString,
	}

	DataSourceName = ResourceName
)
View Source
var (
	ResourceSoftQuota = &schema.Schema{
		Description: "Soft quota of the blobstore",
		Elem: &schema.Resource{
			Schema: map[string]*schema.Schema{
				"limit": {
					Description:  "The limit in Bytes. Minimum value is 1000000",
					Required:     true,
					Type:         schema.TypeInt,
					ValidateFunc: validation.IntAtLeast(100000),
				},
				"type": {
					Description:  "The type to use such as spaceRemainingQuota, or spaceUsedQuota",
					Required:     true,
					Type:         schema.TypeString,
					ValidateFunc: validation.StringInSlice([]string{"spaceRemainingQuota", "spaceUsedQuota"}, false),
				},
			},
		},
		MaxItems: 1,
		Optional: true,
		Type:     schema.TypeList,
	}

	DataSourceSoftQuota = &schema.Schema{
		Description: "Soft quota of the blobstore",
		Elem: &schema.Resource{
			Schema: map[string]*schema.Schema{
				"limit": {
					Description: "The limit in Bytes. Minimum value is 1000000",
					Type:        schema.TypeInt,
					Computed:    true,
				},
				"type": {
					Description: "The type to use such as spaceRemainingQuota, or spaceUsedQuota",
					Type:        schema.TypeString,
					Computed:    true,
				},
			},
		},
		Computed: true,
		Type:     schema.TypeList,
	}
)
View Source
var (
	ResourceTotalSizeInBytes = &schema.Schema{
		Computed:    true,
		Description: "The total size of the blobstore in Bytes",
		Type:        schema.TypeInt,
	}

	DataSourceTotalSizeInBytes = ResourceTotalSizeInBytes
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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