batchschedulingpolicy

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FairSharePolicy

type FairSharePolicy struct {
	// ComputeReservation: number, optional
	ComputeReservation terra.NumberValue `hcl:"compute_reservation,attr"`
	// ShareDecaySeconds: number, optional
	ShareDecaySeconds terra.NumberValue `hcl:"share_decay_seconds,attr"`
	// ShareDistribution: min=0,max=500
	ShareDistribution []ShareDistribution `hcl:"share_distribution,block" validate:"min=0,max=500"`
}

type FairSharePolicyAttributes

type FairSharePolicyAttributes struct {
	// contains filtered or unexported fields
}

func (FairSharePolicyAttributes) ComputeReservation

func (fsp FairSharePolicyAttributes) ComputeReservation() terra.NumberValue

func (FairSharePolicyAttributes) InternalRef

func (fsp FairSharePolicyAttributes) InternalRef() (terra.Reference, error)

func (FairSharePolicyAttributes) InternalTokens

func (fsp FairSharePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FairSharePolicyAttributes) InternalWithRef

func (FairSharePolicyAttributes) ShareDecaySeconds

func (fsp FairSharePolicyAttributes) ShareDecaySeconds() terra.NumberValue

func (FairSharePolicyAttributes) ShareDistribution

type FairSharePolicyState

type FairSharePolicyState struct {
	ComputeReservation float64                  `json:"compute_reservation"`
	ShareDecaySeconds  float64                  `json:"share_decay_seconds"`
	ShareDistribution  []ShareDistributionState `json:"share_distribution"`
}

type ShareDistribution

type ShareDistribution struct {
	// ShareIdentifier: string, required
	ShareIdentifier terra.StringValue `hcl:"share_identifier,attr" validate:"required"`
	// WeightFactor: number, optional
	WeightFactor terra.NumberValue `hcl:"weight_factor,attr"`
}

type ShareDistributionAttributes

type ShareDistributionAttributes struct {
	// contains filtered or unexported fields
}

func (ShareDistributionAttributes) InternalRef

func (sd ShareDistributionAttributes) InternalRef() (terra.Reference, error)

func (ShareDistributionAttributes) InternalTokens

func (sd ShareDistributionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShareDistributionAttributes) InternalWithRef

func (ShareDistributionAttributes) ShareIdentifier

func (sd ShareDistributionAttributes) ShareIdentifier() terra.StringValue

func (ShareDistributionAttributes) WeightFactor

func (sd ShareDistributionAttributes) WeightFactor() terra.NumberValue

type ShareDistributionState

type ShareDistributionState struct {
	ShareIdentifier string  `json:"share_identifier"`
	WeightFactor    float64 `json:"weight_factor"`
}

Jump to

Keyboard shortcuts

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