Documentation
¶
Index ¶
- Constants
- func CastValue(value interface{}, valueType interface{}) (interface{}, error)
- func CheckArgRuntimeTypesMatch(argRuntimeTypes map[string]interface{}, argSchemaTypes map[string]interface{}) error
- func CheckColumnRuntimeTypesMatch(columnRuntimeTypes map[string]interface{}, ...) error
- func CheckValueRuntimeTypesMatch(runtimeType interface{}, schemaType interface{}) error
- func ColumnTypeStrings() []string
- func ErrorArgNameCannotBeType(provided string) error
- func ErrorColumnMustBeRaw(columnName string) error
- func ErrorDuplicateConfig(resourceType resource.Type) error
- func ErrorDuplicateConfigName(name string, resourcesTypes ...resource.Type) error
- func ErrorDuplicateResourceValue(value string, keys ...string) error
- func ErrorGenericTypeMapLength(provided interface{}) error
- func ErrorInvalidColumnInputType(provided interface{}) error
- func ErrorInvalidColumnRuntimeType(provided interface{}) error
- func ErrorInvalidValueDataType(provided interface{}) error
- func ErrorK8sQuantityMustBeInt(quantityStr string) error
- func ErrorMalformedConfig() error
- func ErrorMissingAppDefinition() error
- func ErrorMissingRawColumns(missingColumns []string) error
- func ErrorParseConfig() error
- func ErrorReadConfig() error
- func ErrorSpecifyAllOrNone(vals ...string) error
- func ErrorSpecifyOnlyOne(vals ...string) error
- func ErrorTemplateExtraArg(template *Template, argName string) error
- func ErrorTemplateMissingArg(template *Template, argName string) error
- func ErrorTypeListLength(provided interface{}) error
- func ErrorUndefinedConfig(resourceType resource.Type) error
- func ErrorUndefinedResource(resourceName string, resourceTypes ...resource.Type) error
- func ErrorUndefinedResourceBuiltin(resourceName string, resourceTypes ...resource.Type) error
- func ErrorUnsupportedColumnType(provided interface{}, allowedTypes []string) error
- func ErrorUnsupportedDataType(provided interface{}, allowedType interface{}) error
- func Identify(r Resource) string
- func QuantityParser(v *QuantityValidation) func(string) (interface{}, error)
- func QuantityPtrID(quantity *Quantity) string
- func QuantityPtrsEqual(quantity *Quantity, quantity2 *Quantity) bool
- func ReadAppName(configPath string) (string, error)
- func ValidateArgTypes(argTypes map[string]interface{}) error
- func ValidateArgValues(argValues map[string]interface{}) error
- func ValidateColumnInputTypes(columnTypes map[string]interface{}) error
- func ValidateColumnInputValues(columnInputValues map[string]interface{}) error
- func ValidateColumnInputsExistAndRaw(columnInputValues map[string]interface{}, config *Config) error
- func ValidateColumnNameExistsAndRaw(columnName string, config *Config) error
- func ValidateColumnRuntimeTypes(columnRuntimeTypes map[string]interface{}) error
- func ValidateValue(value interface{}) error
- func ValidateValueType(valueType interface{}) error
- func ValueTypeStrings() []string
- type API
- type APICompute
- type APIs
- type Aggregate
- type Aggregates
- type Aggregator
- type Aggregators
- type App
- type Column
- type ColumnType
- type ColumnTypes
- type Config
- func (config *Config) ColumnNames() []string
- func (config *Config) IsRawColumn(name string) bool
- func (config *Config) IsTransformedColumn(name string) bool
- func (config *Config) MergeBytes(configBytes []byte) (*Config, error)
- func (config *Config) Validate(envName string) error
- func (config *Config) ValidateColumns() error
- func (config *Config) ValidatePartial() error
- type ConfigError
- type Constant
- type Constants
- type CsvData
- type Data
- type Embed
- type Embeds
- type Environment
- type Environments
- type ErrorKind
- type Inputs
- type LogLevel
- type Model
- type ModelDataPartitionRatio
- type ModelEvaluation
- type ModelTraining
- type Models
- type ParquetColumn
- type ParquetData
- type Quantity
- func (quantity *Quantity) Equal(quantity2 Quantity) bool
- func (quantity *Quantity) ID() string
- func (quantity Quantity) MarshalBinary() ([]byte, error)
- func (quantity Quantity) MarshalJSON() ([]byte, error)
- func (quantity Quantity) MarshalText() ([]byte, error)
- func (quantity *Quantity) SplitInTwo() (*k8sresource.Quantity, *k8sresource.Quantity)
- func (quantity *Quantity) String() string
- func (quantity *Quantity) ToFloat32() float32
- func (quantity *Quantity) ToKi() int64
- func (quantity *Quantity) UnmarshalBinary(data []byte) error
- func (quantity *Quantity) UnmarshalJSON(data []byte) error
- func (quantity *Quantity) UnmarshalText(data []byte) error
- type QuantityValidation
- type RawColumn
- type RawColumns
- type RawFloatColumn
- func (column *RawFloatColumn) GetCompute() *SparkCompute
- func (column *RawFloatColumn) GetName() string
- func (column *RawFloatColumn) GetResourceType() resource.Type
- func (column *RawFloatColumn) GetType() string
- func (column *RawFloatColumn) GetUserConfig() Resource
- func (column *RawFloatColumn) IsRaw() bool
- type RawIntColumn
- type RawStringColumn
- func (column *RawStringColumn) GetCompute() *SparkCompute
- func (column *RawStringColumn) GetName() string
- func (column *RawStringColumn) GetResourceType() resource.Type
- func (column *RawStringColumn) GetType() string
- func (column *RawStringColumn) GetUserConfig() Resource
- func (column *RawStringColumn) IsRaw() bool
- type Resource
- type SparkCompute
- type TFCompute
- type Tags
- type Template
- type Templates
- type TransformedColumn
- type TransformedColumns
- type Transformer
- type Transformers
- type ValueType
- type ValueTypes
Constants ¶
View Source
const ( UnknownKey = "unknown" NameKey = "name" KindKey = "kind" DataKey = "data" SchemaKey = "schema" ColumnsKey = "columns" FeatureColumnsKey = "feature_columns" TrainingColumnsKey = "training_columns" TargetColumnKey = "target_column" AggregatesKey = "aggregates" ModelNameKey = "model_name" InputsKey = "inputs" ArgsKey = "args" TypeKey = "type" AggregatorKey = "aggregator" TransformerKey = "transformer" PathKey = "path" ValueKey = "value" // model NumEpochsKey = "num_epochs" NumStepsKey = "num_steps" SaveCheckpointSecsKey = "save_checkpoints_secs" SaveCheckpointStepsKey = "save_checkpoints_steps" DataPartitionRatioKey = "data_partition_ratio" TrainingKey = "training" EvaluationKey = "evaluation" )
Variables ¶
This section is empty.
Functions ¶
func CheckValueRuntimeTypesMatch ¶
func CheckValueRuntimeTypesMatch(runtimeType interface{}, schemaType interface{}) error
func ColumnTypeStrings ¶
func ColumnTypeStrings() []string
func ErrorColumnMustBeRaw ¶
func ErrorDuplicateConfig ¶
func ErrorGenericTypeMapLength ¶
func ErrorGenericTypeMapLength(provided interface{}) error
func ErrorInvalidColumnInputType ¶
func ErrorInvalidColumnInputType(provided interface{}) error
func ErrorInvalidColumnRuntimeType ¶
func ErrorInvalidColumnRuntimeType(provided interface{}) error
func ErrorInvalidValueDataType ¶
func ErrorInvalidValueDataType(provided interface{}) error
func ErrorMalformedConfig ¶
func ErrorMalformedConfig() error
func ErrorMissingAppDefinition ¶
func ErrorMissingAppDefinition() error
func ErrorMissingRawColumns ¶
func ErrorParseConfig ¶
func ErrorParseConfig() error
func ErrorReadConfig ¶
func ErrorReadConfig() error
func ErrorSpecifyAllOrNone ¶
func ErrorSpecifyOnlyOne ¶
func ErrorTemplateExtraArg ¶
func ErrorTemplateMissingArg ¶
func ErrorTypeListLength ¶
func ErrorTypeListLength(provided interface{}) error
func ErrorUndefinedConfig ¶
func ErrorUndefinedResource ¶
func ErrorUnsupportedDataType ¶
func ErrorUnsupportedDataType(provided interface{}, allowedType interface{}) error
func QuantityParser ¶
func QuantityParser(v *QuantityValidation) func(string) (interface{}, error)
func QuantityPtrID ¶
func QuantityPtrsEqual ¶
func ReadAppName ¶
func ValidateArgTypes ¶
func ValidateArgValues ¶
func ValidateValue ¶
func ValidateValue(value interface{}) error
func ValidateValueType ¶
func ValidateValueType(valueType interface{}) error
func ValueTypeStrings ¶
func ValueTypeStrings() []string
Types ¶
type API ¶
type API struct { Name string `json:"name" yaml:"name"` ModelName string `json:"model_name" yaml:"model_name"` Compute *APICompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*API) GetResourceType ¶
type APICompute ¶
type APICompute struct { Replicas int32 `json:"replicas" yaml:"replicas"` CPU *Quantity `json:"cpu" yaml:"cpu"` Mem *Quantity `json:"mem" yaml:"mem"` }
func (*APICompute) Equal ¶
func (apiCompute *APICompute) Equal(apiCompute2 APICompute) bool
func (*APICompute) ID ¶
func (apiCompute *APICompute) ID() string
func (*APICompute) IDWithoutReplicas ¶
func (apiCompute *APICompute) IDWithoutReplicas() string
type Aggregate ¶
type Aggregate struct { Name string `json:"name" yaml:"name"` Aggregator string `json:"aggregator" yaml:"aggregator"` Inputs *Inputs `json:"inputs" yaml:"inputs"` Compute *SparkCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*Aggregate) GetResourceType ¶
func (*Aggregate) InputColumnNames ¶
type Aggregates ¶
type Aggregates []*Aggregate
func (Aggregates) Get ¶
func (aggregates Aggregates) Get(name string) *Aggregate
func (Aggregates) Names ¶
func (aggregates Aggregates) Names() []string
func (Aggregates) Validate ¶
func (aggregates Aggregates) Validate() error
type Aggregator ¶
type Aggregator struct { Name string `json:"name" yaml:"name"` Inputs *Inputs `json:"inputs" yaml:"inputs"` OutputType interface{} `json:"output_type" yaml:"output_type"` Path string `json:"path" yaml:"path"` }
func (*Aggregator) GetName ¶
func (aggregator *Aggregator) GetName() string
func (*Aggregator) GetResourceType ¶
func (aggregator *Aggregator) GetResourceType() resource.Type
type Aggregators ¶
type Aggregators []*Aggregator
func (Aggregators) Get ¶
func (aggregators Aggregators) Get(name string) *Aggregator
func (Aggregators) Names ¶
func (aggregators Aggregators) Names() []string
func (Aggregators) Validate ¶
func (aggregators Aggregators) Validate() error
type ColumnType ¶
type ColumnType int
const ( UnknownColumnType ColumnType = iota IntegerColumnType FloatColumnType StringColumnType IntegerListColumnType FloatListColumnType StringListColumnType )
func ColumnTypeFromString ¶
func ColumnTypeFromString(s string) ColumnType
func (ColumnType) MarshalBinary ¶
func (t ColumnType) MarshalBinary() ([]byte, error)
MarshalBinary satisfies BinaryMarshaler
func (ColumnType) MarshalText ¶
func (t ColumnType) MarshalText() ([]byte, error)
MarshalText satisfies TextMarshaler
func (ColumnType) String ¶
func (t ColumnType) String() string
func (*ColumnType) UnmarshalBinary ¶
func (t *ColumnType) UnmarshalBinary(data []byte) error
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ColumnType) UnmarshalText ¶
func (t *ColumnType) UnmarshalText(text []byte) error
UnmarshalText satisfies TextUnmarshaler
type ColumnTypes ¶
type ColumnTypes []ColumnType
func (ColumnTypes) String ¶
func (ts ColumnTypes) String() string
func (ColumnTypes) StringList ¶
func (ts ColumnTypes) StringList() []string
type Config ¶
type Config struct { App *App `json:"app" yaml:"app"` Environments Environments `json:"environments" yaml:"environments"` Environment *Environment `json:"environment" yaml:"environment"` RawColumns RawColumns `json:"raw_columns" yaml:"raw_columns"` Aggregates Aggregates `json:"aggregates" yaml:"aggregates"` TransformedColumns TransformedColumns `json:"transformed_columns" yaml:"transformed_columns"` Models Models `json:"models" yaml:"models"` APIs APIs `json:"apis" yaml:"apis"` Aggregators Aggregators `json:"aggregators" yaml:"aggregators"` Transformers Transformers `json:"transformers" yaml:"transformers"` Constants Constants `json:"constants" yaml:"constants"` Templates Templates `json:"templates" yaml:"templates"` Embeds Embeds `json:"embeds" yaml:"embeds"` }
func NewPartialPath ¶
func (*Config) ColumnNames ¶
func (*Config) IsRawColumn ¶
func (*Config) IsTransformedColumn ¶
func (*Config) ValidateColumns ¶
func (*Config) ValidatePartial ¶
type ConfigError ¶
type ConfigError struct { Kind ErrorKind // contains filtered or unexported fields }
func (ConfigError) Error ¶
func (e ConfigError) Error() string
type Constant ¶
type Constant struct { Name string `json:"name" yaml:"name"` Type interface{} `json:"type" yaml:"type"` Value interface{} `json:"value" yaml:"value"` Tags Tags `json:"tags" yaml:"tags"` }
func (*Constant) GetResourceType ¶
type CsvData ¶
type CsvData struct { Type string `json:"type" yaml:"type"` Path string `json:"path" yaml:"path"` Schema []string `json:"schema" yaml:"schema"` DropNull bool `json:"drop_null" yaml:"drop_null"` SkipHeader bool `json:"skip_header" yaml:"skip_header"` }
func (*CsvData) GetExternalPath ¶
func (*CsvData) GetIngestedColumns ¶
type Environment ¶
type Environment struct { Name string `json:"name" yaml:"name"` LogLevel *LogLevel `json:"log_level" yaml:"log_level"` Data Data `json:"-" yaml:"-"` }
func (*Environment) GetName ¶
func (env *Environment) GetName() string
func (*Environment) GetResourceType ¶
func (env *Environment) GetResourceType() resource.Type
func (*Environment) Validate ¶
func (env *Environment) Validate() error
type Environments ¶
type Environments []*Environment
func (Environments) Names ¶
func (environments Environments) Names() []string
func (Environments) Validate ¶
func (environments Environments) Validate() error
type ErrorKind ¶
type ErrorKind int
const ( ErrUnknown ErrorKind = iota ErrDuplicateConfigName ErrDuplicateResourceValue ErrDuplicateConfig ErrMalformedConfig ErrParseConfig ErrReadConfig ErrMissingAppDefinition ErrUndefinedConfig ErrMissingRawColumns ErrUndefinedResource ErrUndefinedResourceBuiltin ErrColumnMustBeRaw ErrSpecifyAllOrNone ErrSpecifyOnlyOne ErrTemplateExtraArg ErrTemplateMissingArg ErrInvalidColumnInputType ErrInvalidColumnRuntimeType ErrInvalidValueDataType ErrUnsupportedColumnType ErrUnsupportedDataType ErrArgNameCannotBeType ErrTypeListLength ErrGenericTypeMapLength ErrK8sQuantityMustBeInt )
func (ErrorKind) MarshalBinary ¶
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶
UnmarshalText satisfies TextUnmarshaler
type Model ¶
type Model struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Path string `json:"path" yaml:"path"` TargetColumn string `json:"target_column" yaml:"target_column"` PredictionKey string `json:"prediction_key" yaml:"prediction_key"` FeatureColumns []string `json:"feature_columns" yaml:"feature_columns"` TrainingColumns []string `json:"training_columns" yaml:"training_columns"` Aggregates []string `json:"aggregates" yaml:"aggregates"` Hparams map[string]interface{} `json:"hparams" yaml:"hparams"` DataPartitionRatio *ModelDataPartitionRatio `json:"data_partition_ratio" yaml:"data_partition_ratio"` Training *ModelTraining `json:"training" yaml:"training"` Evaluation *ModelEvaluation `json:"evaluation" yaml:"evaluation"` Compute *TFCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*Model) AllColumnNames ¶
func (*Model) GetResourceType ¶
type ModelDataPartitionRatio ¶
type ModelEvaluation ¶
type ModelEvaluation struct { BatchSize int64 `json:"batch_size" yaml:"batch_size"` NumSteps *int64 `json:"num_steps" yaml:"num_steps"` NumEpochs *int64 `json:"num_epochs" yaml:"num_epochs"` Shuffle bool `json:"shuffle" yaml:"shuffle"` StartDelaySecs int64 `json:"start_delay_secs" yaml:"start_delay_secs"` ThrottleSecs int64 `json:"throttle_secs" yaml:"throttle_secs"` }
type ModelTraining ¶
type ModelTraining struct { BatchSize int64 `json:"batch_size" yaml:"batch_size"` NumSteps *int64 `json:"num_steps" yaml:"num_steps"` NumEpochs *int64 `json:"num_epochs" yaml:"num_epochs"` Shuffle bool `json:"shuffle" yaml:"shuffle"` TfRandomSeed int64 `json:"tf_random_seed" yaml:"tf_random_seed"` TfRandomizeSeed bool `json:"tf_randomize_seed" yaml:"tf_randomize_seed"` SaveSummarySteps int64 `json:"save_summary_steps" yaml:"save_summary_steps"` SaveCheckpointsSecs *int64 `json:"save_checkpoints_secs" yaml:"save_checkpoints_secs"` SaveCheckpointsSteps *int64 `json:"save_checkpoints_steps" yaml:"save_checkpoints_steps"` LogStepCountSteps int64 `json:"log_step_count_steps" yaml:"log_step_count_steps"` KeepCheckpointMax int64 `json:"keep_checkpoint_max" yaml:"keep_checkpoint_max"` KeepCheckpointEveryNHours int64 `json:"keep_checkpoint_every_n_hours" yaml:"keep_checkpoint_every_n_hours"` }
type ParquetColumn ¶
type ParquetData ¶
type ParquetData struct { Type string `json:"type" yaml:"type"` Path string `json:"path" yaml:"path"` Schema []*ParquetColumn `json:"schema" yaml:"schema"` DropNull bool `json:"drop_null" yaml:"drop_null"` }
func (*ParquetData) GetExternalPath ¶
func (parqData *ParquetData) GetExternalPath() string
func (*ParquetData) GetIngestedColumns ¶
func (parqData *ParquetData) GetIngestedColumns() []string
func (*ParquetData) Validate ¶
func (parqData *ParquetData) Validate() error
type Quantity ¶
type Quantity struct { k8sresource.Quantity UserString string }
func (Quantity) MarshalBinary ¶
func (Quantity) MarshalJSON ¶
func (Quantity) MarshalText ¶
func (*Quantity) SplitInTwo ¶
func (quantity *Quantity) SplitInTwo() (*k8sresource.Quantity, *k8sresource.Quantity)
Divide the quantity in two and return both halves (ensuring they add up to the original value)
func (*Quantity) UnmarshalBinary ¶
func (*Quantity) UnmarshalJSON ¶
func (*Quantity) UnmarshalText ¶
type QuantityValidation ¶
type QuantityValidation struct { Min k8sresource.Quantity Int bool }
type RawColumns ¶
type RawColumns []RawColumn
func (RawColumns) Get ¶
func (rawColumns RawColumns) Get(name string) RawColumn
func (RawColumns) Names ¶
func (rawColumns RawColumns) Names() []string
func (*RawColumns) Validate ¶
func (rawColumns *RawColumns) Validate() error
type RawFloatColumn ¶
type RawFloatColumn struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Required bool `json:"required" yaml:"required"` Min *float32 `json:"min" yaml:"min"` Max *float32 `json:"max" yaml:"max"` Values []float32 `json:"values" yaml:"values"` Compute *SparkCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*RawFloatColumn) GetCompute ¶
func (column *RawFloatColumn) GetCompute() *SparkCompute
func (*RawFloatColumn) GetName ¶
func (column *RawFloatColumn) GetName() string
func (*RawFloatColumn) GetResourceType ¶
func (column *RawFloatColumn) GetResourceType() resource.Type
func (*RawFloatColumn) GetType ¶
func (column *RawFloatColumn) GetType() string
func (*RawFloatColumn) GetUserConfig ¶
func (column *RawFloatColumn) GetUserConfig() Resource
func (*RawFloatColumn) IsRaw ¶
func (column *RawFloatColumn) IsRaw() bool
type RawIntColumn ¶
type RawIntColumn struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Required bool `json:"required" yaml:"required"` Min *int64 `json:"min" yaml:"min"` Max *int64 `json:"max" yaml:"max"` Values []int64 `json:"values" yaml:"values"` Compute *SparkCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*RawIntColumn) GetCompute ¶
func (column *RawIntColumn) GetCompute() *SparkCompute
func (*RawIntColumn) GetName ¶
func (column *RawIntColumn) GetName() string
func (*RawIntColumn) GetResourceType ¶
func (column *RawIntColumn) GetResourceType() resource.Type
func (*RawIntColumn) GetType ¶
func (column *RawIntColumn) GetType() string
func (*RawIntColumn) GetUserConfig ¶
func (column *RawIntColumn) GetUserConfig() Resource
func (*RawIntColumn) IsRaw ¶
func (column *RawIntColumn) IsRaw() bool
type RawStringColumn ¶
type RawStringColumn struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Required bool `json:"required" yaml:"required"` Values []string `json:"values" yaml:"values"` Compute *SparkCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*RawStringColumn) GetCompute ¶
func (column *RawStringColumn) GetCompute() *SparkCompute
func (*RawStringColumn) GetName ¶
func (column *RawStringColumn) GetName() string
func (*RawStringColumn) GetResourceType ¶
func (column *RawStringColumn) GetResourceType() resource.Type
func (*RawStringColumn) GetType ¶
func (column *RawStringColumn) GetType() string
func (*RawStringColumn) GetUserConfig ¶
func (column *RawStringColumn) GetUserConfig() Resource
func (*RawStringColumn) IsRaw ¶
func (column *RawStringColumn) IsRaw() bool
type SparkCompute ¶
type SparkCompute struct { Executors int32 `json:"executors" yaml:"executors"` DriverCPU Quantity `json:"driver_cpu" yaml:"driver_cpu"` DriverMem Quantity `json:"driver_mem" yaml:"driver_mem"` DriverMemOverhead *Quantity `json:"driver_mem_overhead" yaml:"driver_mem_overhead"` ExecutorCPU Quantity `json:"executor_cpu" yaml:"executor_cpu"` ExecutorMem Quantity `json:"executor_mem" yaml:"executor_mem"` ExecutorMemOverhead *Quantity `json:"executor_mem_overhead" yaml:"executor_mem_overhead"` MemOverheadFactor *float64 `json:"mem_overhead_factor" yaml:"mem_overhead_factor"` }
func MaxSparkCompute ¶
func MaxSparkCompute(sparkComputes ...*SparkCompute) *SparkCompute
func (*SparkCompute) ID ¶
func (sparkCompute *SparkCompute) ID() string
type TFCompute ¶
type TFCompute struct { CPU *Quantity `json:"cpu" yaml:"cpu"` Mem *Quantity `json:"mem" yaml:"mem"` }
func MaxTFCompute ¶
type Template ¶
type Template struct { Name string `json:"name" yaml:"name"` YAML string `json:"yaml" yaml:"yaml"` }
func (*Template) GetResourceType ¶
func (*Template) VariableNames ¶
type TransformedColumn ¶
type TransformedColumn struct { Name string `json:"name" yaml:"name"` Transformer string `json:"transformer" yaml:"transformer"` Inputs *Inputs `json:"inputs" yaml:"inputs"` Compute *SparkCompute `json:"compute" yaml:"compute"` Tags Tags `json:"tags" yaml:"tags"` }
func (*TransformedColumn) GetName ¶
func (transformedColumn *TransformedColumn) GetName() string
func (*TransformedColumn) GetResourceType ¶
func (transformedColumn *TransformedColumn) GetResourceType() resource.Type
func (*TransformedColumn) InputColumnNames ¶
func (transformedColumn *TransformedColumn) InputColumnNames() map[string]bool
func (*TransformedColumn) IsRaw ¶
func (column *TransformedColumn) IsRaw() bool
type TransformedColumns ¶
type TransformedColumns []*TransformedColumn
func (TransformedColumns) Get ¶
func (transformedColumns TransformedColumns) Get(name string) *TransformedColumn
func (TransformedColumns) Names ¶
func (transformedColumns TransformedColumns) Names() []string
func (TransformedColumns) Validate ¶
func (transformedColumns TransformedColumns) Validate() error
type Transformer ¶
type Transformer struct { Name string `json:"name" yaml:"name"` Inputs *Inputs `json:"inputs" yaml:"inputs"` OutputType string `json:"output_type" yaml:"output_type"` Path string `json:"path" yaml:"path"` }
func (*Transformer) GetName ¶
func (transformer *Transformer) GetName() string
func (*Transformer) GetResourceType ¶
func (transformer *Transformer) GetResourceType() resource.Type
type Transformers ¶
type Transformers []*Transformer
func (Transformers) Get ¶
func (transformers Transformers) Get(name string) *Transformer
func (Transformers) Names ¶
func (transformers Transformers) Names() []string
func (Transformers) Validate ¶
func (transformers Transformers) Validate() error
type ValueType ¶
type ValueType int
func ValueTypeFromString ¶
func (ValueType) MarshalBinary ¶
MarshalBinary satisfies BinaryMarshaler
func (ValueType) MarshalText ¶
MarshalText satisfies TextMarshaler
func (*ValueType) UnmarshalBinary ¶
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ValueType) UnmarshalText ¶
UnmarshalText satisfies TextUnmarshaler
type ValueTypes ¶
type ValueTypes []ValueType
func (ValueTypes) String ¶
func (ts ValueTypes) String() string
func (ValueTypes) StringList ¶
func (ts ValueTypes) StringList() []string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.