Documentation ¶
Index ¶
- type Route
- type RouteAttributes
- func (r RouteAttributes) Host() terra.StringValue
- func (r RouteAttributes) InternalRef() (terra.Reference, error)
- func (r RouteAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r RouteAttributes) InternalWithRef(ref terra.Reference) RouteAttributes
- func (r RouteAttributes) Port() terra.NumberValue
- func (r RouteAttributes) Priority() terra.NumberValue
- func (r RouteAttributes) Protocol() terra.StringValue
- func (r RouteAttributes) Weight() terra.NumberValue
- type RouteState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { // Host: string, required Host terra.StringValue `hcl:"host,attr" validate:"required"` // Port: number, optional Port terra.NumberValue `hcl:"port,attr"` // Priority: number, required Priority terra.NumberValue `hcl:"priority,attr" validate:"required"` // Protocol: string, required Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"` // Weight: number, required Weight terra.NumberValue `hcl:"weight,attr" validate:"required"` }
type RouteAttributes ¶
type RouteAttributes struct {
// contains filtered or unexported fields
}
func (RouteAttributes) Host ¶
func (r RouteAttributes) Host() terra.StringValue
func (RouteAttributes) InternalRef ¶
func (r RouteAttributes) InternalRef() (terra.Reference, error)
func (RouteAttributes) InternalTokens ¶
func (r RouteAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RouteAttributes) InternalWithRef ¶
func (r RouteAttributes) InternalWithRef(ref terra.Reference) RouteAttributes
func (RouteAttributes) Port ¶
func (r RouteAttributes) Port() terra.NumberValue
func (RouteAttributes) Priority ¶
func (r RouteAttributes) Priority() terra.NumberValue
func (RouteAttributes) Protocol ¶
func (r RouteAttributes) Protocol() terra.StringValue
func (RouteAttributes) Weight ¶
func (r RouteAttributes) Weight() terra.NumberValue
Click to show internal directories.
Click to hide internal directories.