Documentation
¶
Index ¶
- Constants
- type Environment
- func (e *Environment) DefaultPublicKeyPath() string
- func (e *Environment) InternalDockerhubMirror() string
- func (e *Environment) InternalRegistry() string
- func (e *Environment) InternalRegistryFullImagePathExists(_ string) (bool, error)
- func (e *Environment) InternalRegistryImageTagExists(_, _ string) (bool, error)
- func (e *Environment) OpenShiftCPUs() string
- func (e *Environment) OpenShiftDisk() string
- func (e *Environment) OpenShiftMemory() string
- func (e *Environment) OpenShiftPullSecretPath() string
- func (e *Environment) VMCPUs() string
- func (e *Environment) VMDisk() string
- func (e *Environment) VMHostname() string
- func (e *Environment) VMMemory() string
Constants ¶
const ( // local Infra (local) DDInfraDefaultPublicKeyPath = "local/defaultPublicKeyPath" DDInfraOpenShiftPullSecretPath = "local/openshift/pullSecretPath" DDInfraOpenShiftCPUs = "local/openshift/cpus" DDInfraOpenShiftMemory = "local/openshift/memory" DDInfraOpenShiftDisk = "local/openshift/disk" DDInfraVMCPUs = "local/vm/cpus" DDInfraVMMemory = "local/vm/memory" DDInfraVMDisk = "local/vm/disk" DDInfraVMHostname = "local/vm/hostname" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
*config.CommonEnvironment
Namer namer.Namer
}
func NewEnvironment ¶
func NewEnvironment(ctx *pulumi.Context) (Environment, error)
func (*Environment) DefaultPublicKeyPath ¶
func (e *Environment) DefaultPublicKeyPath() string
Common
func (*Environment) InternalDockerhubMirror ¶
func (e *Environment) InternalDockerhubMirror() string
InternalDockerhubMirror returns the internal Dockerhub mirror.
func (*Environment) InternalRegistry ¶
func (e *Environment) InternalRegistry() string
InternalRegistry returns the internal registry.
func (*Environment) InternalRegistryFullImagePathExists ¶
func (e *Environment) InternalRegistryFullImagePathExists(_ string) (bool, error)
InternalRegistryFullImagePathExists returns true if the image and tag exists in the internal registry.
func (*Environment) InternalRegistryImageTagExists ¶
func (e *Environment) InternalRegistryImageTagExists(_, _ string) (bool, error)
InternalRegistryImageTagExists returns true if the image tag exists in the internal registry.
func (*Environment) OpenShiftCPUs ¶
func (e *Environment) OpenShiftCPUs() string
OpenShiftCPUs returns the number of CPUs to allocate to the CRC cluster (default: 8).
func (*Environment) OpenShiftDisk ¶
func (e *Environment) OpenShiftDisk() string
OpenShiftDisk returns the disk size in GB to allocate to the CRC cluster (default: 50).
func (*Environment) OpenShiftMemory ¶
func (e *Environment) OpenShiftMemory() string
OpenShiftMemory returns the memory in MB to allocate to the CRC cluster (default: 16384).
func (*Environment) OpenShiftPullSecretPath ¶
func (e *Environment) OpenShiftPullSecretPath() string
OpenShiftPullSecretPath returns the path to the OpenShift pull secret file
func (*Environment) VMCPUs ¶
func (e *Environment) VMCPUs() string
VMCPUs returns the number of CPUs to allocate to a local VM (default: 2).
func (*Environment) VMDisk ¶
func (e *Environment) VMDisk() string
VMDisk returns the disk size to allocate to a local VM (default: 10G).
func (*Environment) VMHostname ¶
func (e *Environment) VMHostname() string
VMHostname returns the hostname to configure on the agent for a local VM. Defaults to the Pulumi stack name so each deployment has a unique, identifiable host in Datadog.
func (*Environment) VMMemory ¶
func (e *Environment) VMMemory() string
VMMemory returns the memory to allocate to a local VM (default: 4G).