Documentation ¶
Index ¶
- func ConvertDebugRuleEvaluationStatusesFromSageMaker(source []sagemaker.DebugRuleEvaluationStatus) ([]commonv1.DebugRuleEvaluationStatus, error)
- func ConvertHyperParameterTrainingJobSummaryFromSageMaker(source *sagemaker.HyperParameterTrainingJobSummary) (*commonv1.HyperParameterTrainingJobSummary, error)
- func ConvertKeyValuePairSliceToMap(kvps []*commonv1.KeyValuePair) map[string]string
- func ConvertMapToKeyValuePairSlice(m map[string]string) []*commonv1.KeyValuePair
- func ConvertProductionVariantSummary(pv *sagemaker.ProductionVariantSummary) (*commonv1.ProductionVariantSummary, error)
- func ConvertProductionVariantSummarySlice(pvs []sagemaker.ProductionVariantSummary) ([]*commonv1.ProductionVariantSummary, error)
- func ConvertTagSliceToSageMakerTagSlice(tags []commonv1.Tag) []sagemaker.Tag
- func CreateCreateBatchTransformJobInputFromSpec(spec batchtransformjobv1.BatchTransformJobSpec) sagemaker.CreateTransformJobInput
- func CreateCreateEndpointConfigInputFromSpec(endpointconfig *endpointconfigv1.EndpointConfigSpec, endpointConfigName string) (*sagemaker.CreateEndpointConfigInput, error)
- func CreateCreateHyperParameterTuningJobInputFromSpec(spec hpojobv1.HyperparameterTuningJobSpec) (sagemaker.CreateHyperParameterTuningJobInput, error)
- func CreateCreateModelInputFromSpec(model *modelv1.ModelSpec, modelName string) (*sagemaker.CreateModelInput, error)
- func CreateCreateTrainingJobInputFromSpec(spec trainingjobv1.TrainingJobSpec) sagemaker.CreateTrainingJobInput
- func CreateDeleteEndpointConfigInput(endpointConfigName *string) (*sagemaker.DeleteEndpointConfigInput, error)
- func CreateDeleteModelInput(modelName *string) (*sagemaker.DeleteModelInput, error)
- func CreateEndpointConfigSpecFromDescription(description *sagemaker.DescribeEndpointConfigOutput) (*endpointconfigv1.EndpointConfigSpec, error)
- func CreateHyperParameterTuningJobSpecFromDescription(description sagemaker.DescribeHyperParameterTuningJobOutput) hpojobv1.HyperparameterTuningJobSpec
- func CreateModelSpecFromDescription(description *sagemaker.DescribeModelOutput) (*modelv1.ModelSpec, error)
- func CreateTrainingJobSpecFromDescription(description sagemaker.DescribeTrainingJobOutput) (trainingjobv1.TrainingJobSpec, error)
- func CreateTrainingJobStatusCountersFromDescription(sageMakerDescription *sagemaker.DescribeHyperParameterTuningJobOutput) *commonv1.TrainingJobStatusCounters
- func CreateTransformJobSpecFromDescription(description sagemaker.DescribeTransformJobOutput) batchtransformjobv1.BatchTransformJobSpec
- type Comparison
- func EndpointConfigSpecMatchesDescription(description sagemaker.DescribeEndpointConfigOutput, ...) (Comparison, error)
- func HyperparameterTuningJobSpecMatchesDescription(description sagemaker.DescribeHyperParameterTuningJobOutput, ...) Comparison
- func ModelSpecMatchesDescription(description sagemaker.DescribeModelOutput, spec modelv1.ModelSpec) (Comparison, error)
- func TransformJobSpecMatchesDescription(description sagemaker.DescribeTransformJobOutput, ...) Comparison
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDebugRuleEvaluationStatusesFromSageMaker ¶
func ConvertDebugRuleEvaluationStatusesFromSageMaker(source []sagemaker.DebugRuleEvaluationStatus) ([]commonv1.DebugRuleEvaluationStatus, error)
ConvertDebugRuleEvaluationStatusesFromSageMaker converts an array of SageMaker DebugRuleEvaluationStatus to a Kubernetes SageMaker type.
func ConvertHyperParameterTrainingJobSummaryFromSageMaker ¶
func ConvertHyperParameterTrainingJobSummaryFromSageMaker(source *sagemaker.HyperParameterTrainingJobSummary) (*commonv1.HyperParameterTrainingJobSummary, error)
ConvertHyperParameterTrainingJobSummaryFromSageMaker converts a HyperParameterTrainingJobSummary to a Kubernetes SageMaker type, returning errors if there are any.
func ConvertKeyValuePairSliceToMap ¶
func ConvertKeyValuePairSliceToMap(kvps []*commonv1.KeyValuePair) map[string]string
func ConvertMapToKeyValuePairSlice ¶
func ConvertMapToKeyValuePairSlice(m map[string]string) []*commonv1.KeyValuePair
func ConvertProductionVariantSummary ¶
func ConvertProductionVariantSummary(pv *sagemaker.ProductionVariantSummary) (*commonv1.ProductionVariantSummary, error)
Create a *commonv1.ProductionVariantSummary from the equivalent SageMaker type.
func ConvertProductionVariantSummarySlice ¶
func ConvertProductionVariantSummarySlice(pvs []sagemaker.ProductionVariantSummary) ([]*commonv1.ProductionVariantSummary, error)
Create a []*commonv1.ProductionVariantSummary from the equivalent SageMaker type.
func CreateCreateBatchTransformJobInputFromSpec ¶
func CreateCreateBatchTransformJobInputFromSpec(spec batchtransformjobv1.BatchTransformJobSpec) sagemaker.CreateTransformJobInput
Creates a CreateTrainingJobInput from a BatchTransformJobSpec
func CreateCreateEndpointConfigInputFromSpec ¶
func CreateCreateEndpointConfigInputFromSpec(endpointconfig *endpointconfigv1.EndpointConfigSpec, endpointConfigName string) (*sagemaker.CreateEndpointConfigInput, error)
Create a CreateEndpointConfig request input from a Kubernetes EndpointConfig spec.
func CreateCreateHyperParameterTuningJobInputFromSpec ¶
func CreateCreateHyperParameterTuningJobInputFromSpec(spec hpojobv1.HyperparameterTuningJobSpec) (sagemaker.CreateHyperParameterTuningJobInput, error)
CreateCreateHyperParameterTuningJobInputFromSpec creates a CreateHPO request input from a Kubernetes HPO spec.
func CreateCreateModelInputFromSpec ¶
func CreateCreateModelInputFromSpec(model *modelv1.ModelSpec, modelName string) (*sagemaker.CreateModelInput, error)
Create a CreateModel request input from a Kubernetes Model spec.
func CreateCreateTrainingJobInputFromSpec ¶
func CreateCreateTrainingJobInputFromSpec(spec trainingjobv1.TrainingJobSpec) sagemaker.CreateTrainingJobInput
Create a CreateTrainingJobInput from a TrainingJobSpec. This panics if json libraries are unable to serialize the spec or deserialize the serialization.
func CreateDeleteEndpointConfigInput ¶
func CreateDeleteEndpointConfigInput(endpointConfigName *string) (*sagemaker.DeleteEndpointConfigInput, error)
Create a DeleteEndpointConfigRequest input from a EndpointConfigName.
func CreateDeleteModelInput ¶
func CreateDeleteModelInput(modelName *string) (*sagemaker.DeleteModelInput, error)
Create a DeleteModel request input from a ModelName.
func CreateEndpointConfigSpecFromDescription ¶
func CreateEndpointConfigSpecFromDescription(description *sagemaker.DescribeEndpointConfigOutput) (*endpointconfigv1.EndpointConfigSpec, error)
Create a Kubernetes EndpointConfig spec from a SageMaker endpointconfig description.
func CreateHyperParameterTuningJobSpecFromDescription ¶
func CreateHyperParameterTuningJobSpecFromDescription(description sagemaker.DescribeHyperParameterTuningJobOutput) hpojobv1.HyperparameterTuningJobSpec
Create a HyperParameterTuningJobSpec from a DescribeHyperParameterTuningJobOutput. This panics if json libraries are unable to serialize the description and deserialize the serialization.
func CreateModelSpecFromDescription ¶
func CreateModelSpecFromDescription(description *sagemaker.DescribeModelOutput) (*modelv1.ModelSpec, error)
Create a Kubernetes Model spec from a SageMaker model description.
func CreateTrainingJobSpecFromDescription ¶
func CreateTrainingJobSpecFromDescription(description sagemaker.DescribeTrainingJobOutput) (trainingjobv1.TrainingJobSpec, error)
Create a TrainingJobSpec from a SageMaker description. This uses JSON to do the assignment. It also transforms the hyperparameter list from map to list of key,value pairs.
func CreateTrainingJobStatusCountersFromDescription ¶
func CreateTrainingJobStatusCountersFromDescription(sageMakerDescription *sagemaker.DescribeHyperParameterTuningJobOutput) *commonv1.TrainingJobStatusCounters
CreateTrainingJobStatusCountersFromDescription creates a set of TrainingJobStatusCounters from a DescribeHyperParameterTuningJobOutput
func CreateTransformJobSpecFromDescription ¶
func CreateTransformJobSpecFromDescription(description sagemaker.DescribeTransformJobOutput) batchtransformjobv1.BatchTransformJobSpec
Create a BatchTransformJobSpec from a DescribeTrainingJobOutput. This panics if json libraries are unable to serialize the description and deserialize the serialization.
Types ¶
type Comparison ¶
type Comparison struct { // A human-readable list of differences. Differences string // Whether or not the two objects are equal. Equal bool }
Simple struct representing whether two objects match and their differences.
func EndpointConfigSpecMatchesDescription ¶
func EndpointConfigSpecMatchesDescription(description sagemaker.DescribeEndpointConfigOutput, spec endpointconfigv1.EndpointConfigSpec) (Comparison, error)
Determine if the given EndpointConfigSpec matches the DescribeEndpointConfigOutput. This converts the description to a EndpointConfigSpec, then selectively compares fields.
func HyperparameterTuningJobSpecMatchesDescription ¶
func HyperparameterTuningJobSpecMatchesDescription(description sagemaker.DescribeHyperParameterTuningJobOutput, spec hpojobv1.HyperparameterTuningJobSpec) Comparison
Determine if the given HyperparameterTuningJobSpec matches the DescribeHyperParameterTuningJobOutput. This converts the description to a HyperparameterTuningJobSpec, then selectively compares fields.
func ModelSpecMatchesDescription ¶
func ModelSpecMatchesDescription(description sagemaker.DescribeModelOutput, spec modelv1.ModelSpec) (Comparison, error)
Determine if the given ModelSpec matches the DescribeModelOutput. This converts the description to a ModelSpec, then selectively compares fields.
func TransformJobSpecMatchesDescription ¶
func TransformJobSpecMatchesDescription(description sagemaker.DescribeTransformJobOutput, spec batchtransformjobv1.BatchTransformJobSpec) Comparison
Determine if the given BatchTransformJobSpec matches the DescribeTransformJobOutput. This converts the description to a BatchTransformJobSpec, then selectively compares fields.