Documentation
¶
Index ¶
- type Endpoint
- type EndpointConfig
- type EndpointStatus
- type Model
- type NotebookInstance
- type NotebookInstanceStatus
- type ProcessingJob
- type ProcessingJobStatus
- type SageMakerService
- type Store
- func (s *Store) AddTags(arn string, tags map[string]string) *service.AWSError
- func (s *Store) CreateEndpoint(name, configName string, tags map[string]string) (*Endpoint, *service.AWSError)
- func (s *Store) CreateEndpointConfig(name string, productionVariants []map[string]any, tags map[string]string) (*EndpointConfig, *service.AWSError)
- func (s *Store) CreateModel(name string, primaryContainer map[string]any, roleArn string, ...) (*Model, *service.AWSError)
- func (s *Store) CreateNotebookInstance(name, instanceType, roleArn, subnetId, directInternetAccess string, ...) (*NotebookInstance, *service.AWSError)
- func (s *Store) CreateProcessingJob(name, roleArn string, appSpec, resources map[string]any, ...) (*ProcessingJob, *service.AWSError)
- func (s *Store) CreateTrainingJob(name string, algorithmSpec map[string]any, roleArn string, ...) (*TrainingJob, *service.AWSError)
- func (s *Store) CreateTransformJob(name, modelName string, input, output, resources map[string]any, ...) (*TransformJob, *service.AWSError)
- func (s *Store) DeleteEndpoint(name string) *service.AWSError
- func (s *Store) DeleteEndpointConfig(name string) *service.AWSError
- func (s *Store) DeleteModel(name string) *service.AWSError
- func (s *Store) DeleteNotebookInstance(name string) *service.AWSError
- func (s *Store) DeleteTags(arn string, tagKeys []string) *service.AWSError
- func (s *Store) GetEndpoint(name string) (*Endpoint, *service.AWSError)
- func (s *Store) GetEndpointConfig(name string) (*EndpointConfig, *service.AWSError)
- func (s *Store) GetModel(name string) (*Model, *service.AWSError)
- func (s *Store) GetNotebookInstance(name string) (*NotebookInstance, *service.AWSError)
- func (s *Store) GetProcessingJob(name string) (*ProcessingJob, *service.AWSError)
- func (s *Store) GetTrainingJob(name string) (*TrainingJob, *service.AWSError)
- func (s *Store) GetTransformJob(name string) (*TransformJob, *service.AWSError)
- func (s *Store) ListEndpointConfigs() []*EndpointConfig
- func (s *Store) ListEndpoints() []*Endpoint
- func (s *Store) ListModels() []*Model
- func (s *Store) ListNotebookInstances() []*NotebookInstance
- func (s *Store) ListProcessingJobs() []*ProcessingJob
- func (s *Store) ListTags(arn string) (map[string]string, *service.AWSError)
- func (s *Store) ListTrainingJobs() []*TrainingJob
- func (s *Store) ListTransformJobs() []*TransformJob
- func (s *Store) StartNotebookInstance(name string) *service.AWSError
- func (s *Store) StopNotebookInstance(name string) *service.AWSError
- func (s *Store) StopProcessingJob(name string) *service.AWSError
- func (s *Store) StopTrainingJob(name string) *service.AWSError
- func (s *Store) StopTransformJob(name string) *service.AWSError
- func (s *Store) UpdateEndpoint(name, configName string) (*Endpoint, *service.AWSError)
- func (s *Store) UpdateNotebookInstance(name, instanceType, roleArn string, volumeSize int) (*NotebookInstance, *service.AWSError)
- type TrainingJob
- type TrainingJobStatus
- type TransformJob
- type TransformJobStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointConfig ¶
type EndpointStatus ¶
type EndpointStatus string
const ( EndpointCreating EndpointStatus = "Creating" EndpointInService EndpointStatus = "InService" EndpointUpdating EndpointStatus = "Updating" EndpointDeleting EndpointStatus = "Deleting" EndpointFailed EndpointStatus = "Failed" EndpointSystemUpdating EndpointStatus = "SystemUpdating" EndpointRollingBack EndpointStatus = "RollingBack" EndpointUpdateRollbackFailed EndpointStatus = "UpdateRollbackFailed" )
type NotebookInstance ¶
type NotebookInstance struct {
NotebookInstanceName string
NotebookInstanceArn string
InstanceType string
RoleArn string
Status NotebookInstanceStatus
SubnetId string
SecurityGroupIds []string
DirectInternetAccess string
VolumeSizeInGB int
CreationTime time.Time
LastModifiedTime time.Time
Tags map[string]string
Lifecycle *lifecycle.Machine
}
type NotebookInstanceStatus ¶
type NotebookInstanceStatus string
const ( NotebookPending NotebookInstanceStatus = "Pending" NotebookInService NotebookInstanceStatus = "InService" NotebookStopping NotebookInstanceStatus = "Stopping" NotebookStopped NotebookInstanceStatus = "Stopped" NotebookFailed NotebookInstanceStatus = "Failed" NotebookDeleting NotebookInstanceStatus = "Deleting" NotebookUpdating NotebookInstanceStatus = "Updating" )
type ProcessingJob ¶
type ProcessingJob struct {
ProcessingJobName string
ProcessingJobArn string
ProcessingJobStatus ProcessingJobStatus
RoleArn string
AppSpecification map[string]any
ProcessingResources map[string]any
ProcessingInputs []map[string]any
ProcessingOutputConfig map[string]any
StoppingCondition map[string]any
CreationTime time.Time
ProcessingStartTime *time.Time
ProcessingEndTime *time.Time
FailureReason string
Tags map[string]string
Lifecycle *lifecycle.Machine
}
type ProcessingJobStatus ¶
type ProcessingJobStatus string
const ( ProcessingInProgress ProcessingJobStatus = "InProgress" ProcessingCompleted ProcessingJobStatus = "Completed" ProcessingFailed ProcessingJobStatus = "Failed" ProcessingStopping ProcessingJobStatus = "Stopping" ProcessingStopped ProcessingJobStatus = "Stopped" )
type SageMakerService ¶
type SageMakerService struct {
// contains filtered or unexported fields
}
SageMakerService is the cloudmock implementation of the AWS SageMaker API.
func New ¶
func New(accountID, region string) *SageMakerService
New returns a new SageMakerService for the given AWS account ID and region.
func (*SageMakerService) Actions ¶
func (s *SageMakerService) Actions() []service.Action
Actions returns the list of SageMaker API actions supported by this service.
func (*SageMakerService) HandleRequest ¶
func (s *SageMakerService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming SageMaker request to the appropriate handler. SageMaker uses JSON protocol with TargetPrefix "SageMaker".
func (*SageMakerService) HealthCheck ¶
func (s *SageMakerService) HealthCheck() error
HealthCheck always returns nil (no external dependencies).
func (*SageMakerService) Name ¶
func (s *SageMakerService) Name() string
Name returns the AWS service name used for routing.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the in-memory store for all SageMaker resources.
func (*Store) CreateEndpoint ¶
func (*Store) CreateEndpointConfig ¶
func (*Store) CreateModel ¶
func (*Store) CreateNotebookInstance ¶
func (*Store) CreateProcessingJob ¶
func (*Store) CreateTrainingJob ¶
func (*Store) CreateTransformJob ¶
func (*Store) DeleteEndpointConfig ¶
func (*Store) DeleteNotebookInstance ¶
func (*Store) DeleteTags ¶
func (*Store) GetEndpointConfig ¶
func (s *Store) GetEndpointConfig(name string) (*EndpointConfig, *service.AWSError)
func (*Store) GetNotebookInstance ¶
func (s *Store) GetNotebookInstance(name string) (*NotebookInstance, *service.AWSError)
func (*Store) GetProcessingJob ¶
func (s *Store) GetProcessingJob(name string) (*ProcessingJob, *service.AWSError)
func (*Store) GetTrainingJob ¶
func (s *Store) GetTrainingJob(name string) (*TrainingJob, *service.AWSError)
func (*Store) GetTransformJob ¶
func (s *Store) GetTransformJob(name string) (*TransformJob, *service.AWSError)
func (*Store) ListEndpointConfigs ¶
func (s *Store) ListEndpointConfigs() []*EndpointConfig
func (*Store) ListEndpoints ¶
func (*Store) ListModels ¶
func (*Store) ListNotebookInstances ¶
func (s *Store) ListNotebookInstances() []*NotebookInstance
func (*Store) ListProcessingJobs ¶
func (s *Store) ListProcessingJobs() []*ProcessingJob
func (*Store) ListTrainingJobs ¶
func (s *Store) ListTrainingJobs() []*TrainingJob
func (*Store) ListTransformJobs ¶
func (s *Store) ListTransformJobs() []*TransformJob
func (*Store) StartNotebookInstance ¶
func (*Store) StopNotebookInstance ¶
func (*Store) UpdateEndpoint ¶
func (*Store) UpdateNotebookInstance ¶
type TrainingJob ¶
type TrainingJob struct {
TrainingJobName string
TrainingJobArn string
TrainingJobStatus TrainingJobStatus
SecondaryStatus string
AlgorithmSpecification map[string]any
RoleArn string
InputDataConfig []map[string]any
OutputDataConfig map[string]any
ResourceConfig map[string]any
StoppingCondition map[string]any
HyperParameters map[string]string
CreationTime time.Time
TrainingStartTime *time.Time
TrainingEndTime *time.Time
LastModifiedTime time.Time
FailureReason string
ModelArtifacts map[string]any
Tags map[string]string
Lifecycle *lifecycle.Machine
}
type TrainingJobStatus ¶
type TrainingJobStatus string
const ( TrainingInProgress TrainingJobStatus = "InProgress" TrainingCompleted TrainingJobStatus = "Completed" TrainingFailed TrainingJobStatus = "Failed" TrainingStopping TrainingJobStatus = "Stopping" TrainingStopped TrainingJobStatus = "Stopped" )
type TransformJob ¶
type TransformJob struct {
TransformJobName string
TransformJobArn string
TransformJobStatus TransformJobStatus
ModelName string
TransformInput map[string]any
TransformOutput map[string]any
TransformResources map[string]any
CreationTime time.Time
TransformStartTime *time.Time
TransformEndTime *time.Time
FailureReason string
Tags map[string]string
Lifecycle *lifecycle.Machine
}
type TransformJobStatus ¶
type TransformJobStatus string
const ( TransformInProgress TransformJobStatus = "InProgress" TransformCompleted TransformJobStatus = "Completed" TransformFailed TransformJobStatus = "Failed" TransformStopping TransformJobStatus = "Stopping" TransformStopped TransformJobStatus = "Stopped" )
Click to show internal directories.
Click to hide internal directories.