Documentation

Index

Constants

View Source
const (
	// JujuTagPrefix is the prefix for Juju-managed tags.
	JujuTagPrefix = "juju-"

	// JujuEnv is the tag name used for identifying the
	// Juju environment a resource is part of.
	JujuEnv = JujuTagPrefix + "env-uuid"

	// JujuStateServer is the tag name used for determining
	// whether a machine instance is a state server or not.
	JujuStateServer = JujuTagPrefix + "is-state"

	// JujuUnitsDeployed is the tag name used for identifying
	// the units deployed to a machine instance.
	JujuUnitsDeployed = JujuTagPrefix + "units-deployed"

	// JujuStorageInstance is the tag name used for identifying
	// the Juju storage instance that an IaaS storage resource
	// is assigned to.
	JujuStorageInstance = JujuTagPrefix + "storage-instance"

	// JujuStorageOwner is the tag name used for identifying
	// the service or unit that owns the Juju storage instance
	// that an IaaS storage resource is assigned to.
	JujuStorageOwner = JujuTagPrefix + "storage-owner"
)

Variables

This section is empty.

Functions

func ResourceTags

func ResourceTags(e names.EnvironTag, taggers ...ResourceTagger) map[string]string

    ResourceTags returns tags to set on an infrastructure resource for the specified Juju environment.

    Types

    type ResourceTagger

    type ResourceTagger interface {
    	// ResourceTags returns a set of resource tags, and a
    	// flag indicating whether or not any resource tags are
    	// available.
    	ResourceTags() (map[string]string, bool)
    }

      ResourceTagger is an interface that can provide resource tags.

      Source Files