resources

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type GCPResourceFactory

type GCPResourceFactory struct{}

func (*GCPResourceFactory) CreateResource

func (f *GCPResourceFactory) CreateResource(id, value, style string) resources.Resource

CreateResource creates a resource based on cell data.

type ResourceType

type ResourceType string

ResourceType represents the type of a resource.

const (
	// AppEngine represents the App Engine resource type.
	AppEngine ResourceType = "appengine"

	// BigQuery represents the BigQuery resource type.
	BigQuery ResourceType = "bigquery"

	// BigTable represents the Cloud Big Table resource type.
	BigTable ResourceType = "bigtable"

	// Function represents the Cloud Function resource type.
	Function ResourceType = "function"

	// Storage represents the Cloud Storage resource type.
	Storage ResourceType = "storage"

	// Dataflow represents the Dataflow resource type.
	Dataflow ResourceType = "dataflow"

	// IoTCore represents the IoT Core resource type.
	IoTCore ResourceType = "iotcore"

	// PubSub represents the Pub Sub resource type.
	PubSub ResourceType = "pubsub"

	// UnknownType represents an unknown resource type.
	UnknownType ResourceType = "unknown"
)

func ParseResourceType

func ParseResourceType(s string) ResourceType

ParseResourceType parses a ResourceType from a string.

func (ResourceType) String

func (rt ResourceType) String() string

String returns the string representation of a ResourceType.

Jump to

Keyboard shortcuts

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