github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/provider/openstack/init.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package openstack
     5  
     6  import (
     7  	"github.com/juju/juju/environs"
     8  	"github.com/juju/juju/environs/tools"
     9  )
    10  
    11  const (
    12  	providerType = "openstack"
    13  
    14  	// Default root disk size when root-disk-source is volume.
    15  	defaultRootDiskSize = 30 * 1024 // 30 GiB
    16  )
    17  
    18  const (
    19  	// BlockDeviceMapping source volume type for cinder block device.
    20  	rootDiskSourceVolume = "volume"
    21  	// BlockDeviceMapping source volume type for local block device.
    22  	rootDiskSourceLocal = "local"
    23  )
    24  
    25  func init() {
    26  	environs.RegisterProvider(providerType, providerInstance)
    27  
    28  	environs.RegisterImageDataSourceFunc("keystone catalog", getKeystoneImageSource)
    29  	tools.RegisterToolsDataSourceFunc("keystone catalog", getKeystoneToolsSource)
    30  }