Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
resources.ResourceConfigBase `yaml:",inline"`
Text string `yaml:"text" validate:"required"`
}
Config represents the uninitialized textual resource configuration from YAML.
func (*Config) Initialize ¶
Initialize computes the size of the text and returns an initialized textual resource.
func (*Config) ResourceConfigType ¶
ResourceConfigType returns the resource type identifier.
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
SetDefaults applies system defaults for unspecified optional fields.
type Resource ¶
Resource represents the initialized textual resource that returns plain text payloads.
func (*Resource) ToConfig ¶
func (r *Resource) ToConfig() resources.ResourceConfig
ToConfig returns the underlying uninitialized configuration.
Click to show internal directories.
Click to hide internal directories.