Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V1 ¶ added in v2.0.9
type V1 interface { // Update Seed peer configuration. UpdateSeedPeer(context.Context, *managerv1.UpdateSeedPeerRequest, ...grpc.CallOption) (*managerv1.SeedPeer, error) // Get Scheduler and Scheduler cluster configuration. GetScheduler(context.Context, *managerv1.GetSchedulerRequest, ...grpc.CallOption) (*managerv1.Scheduler, error) // Update scheduler configuration. UpdateScheduler(context.Context, *managerv1.UpdateSchedulerRequest, ...grpc.CallOption) (*managerv1.Scheduler, error) // List acitve schedulers configuration. ListSchedulers(context.Context, *managerv1.ListSchedulersRequest, ...grpc.CallOption) (*managerv1.ListSchedulersResponse, error) // Get object storage configuration. GetObjectStorage(context.Context, *managerv1.GetObjectStorageRequest, ...grpc.CallOption) (*managerv1.ObjectStorage, error) // List buckets configuration. ListBuckets(context.Context, *managerv1.ListBucketsRequest, ...grpc.CallOption) (*managerv1.ListBucketsResponse, error) // List models information. ListModels(context.Context, *managerv1.ListModelsRequest, ...grpc.CallOption) (*managerv1.ListModelsResponse, error) // Get model information. GetModel(context.Context, *managerv1.GetModelRequest, ...grpc.CallOption) (*managerv1.Model, error) // Create model information. CreateModel(context.Context, *managerv1.CreateModelRequest, ...grpc.CallOption) (*managerv1.Model, error) // Update model information. UpdateModel(context.Context, *managerv1.UpdateModelRequest, ...grpc.CallOption) (*managerv1.Model, error) // Delete model information. DeleteModel(context.Context, *managerv1.DeleteModelRequest, ...grpc.CallOption) error // List model versions information. ListModelVersions(context.Context, *managerv1.ListModelVersionsRequest, ...grpc.CallOption) (*managerv1.ListModelVersionsResponse, error) // Get model version information. GetModelVersion(context.Context, *managerv1.GetModelVersionRequest, ...grpc.CallOption) (*managerv1.ModelVersion, error) // Create model version information. CreateModelVersion(context.Context, *managerv1.CreateModelVersionRequest, ...grpc.CallOption) (*managerv1.ModelVersion, error) // Update model version information. UpdateModelVersion(context.Context, *managerv1.UpdateModelVersionRequest, ...grpc.CallOption) (*managerv1.ModelVersion, error) // Delete model version information. DeleteModelVersion(context.Context, *managerv1.DeleteModelVersionRequest, ...grpc.CallOption) error // List applications configuration. ListApplications(context.Context, *managerv1.ListApplicationsRequest, ...grpc.CallOption) (*managerv1.ListApplicationsResponse, error) // KeepAlive with manager. KeepAlive(time.Duration, *managerv1.KeepAliveRequest, <-chan struct{}, ...grpc.CallOption) // Close tears down the ClientConn and all underlying connections. Close() error }
V1 is the interface for v1 version of the grpc client.
func GetV1ByAddr ¶ added in v2.0.9
func GetV1ByAddr(ctx context.Context, netAddrs []dfnet.NetAddr, opts ...grpc.DialOption) (V1, error)
GetV1ByAddr returns v1 version of the manager client with addresses.
type V2 ¶ added in v2.0.9
type V2 interface { // Update Seed peer configuration. UpdateSeedPeer(context.Context, *managerv2.UpdateSeedPeerRequest, ...grpc.CallOption) (*managerv2.SeedPeer, error) // Get Scheduler and Scheduler cluster configuration. GetScheduler(context.Context, *managerv2.GetSchedulerRequest, ...grpc.CallOption) (*managerv2.Scheduler, error) // Update scheduler configuration. UpdateScheduler(context.Context, *managerv2.UpdateSchedulerRequest, ...grpc.CallOption) (*managerv2.Scheduler, error) // List acitve schedulers configuration. ListSchedulers(context.Context, *managerv2.ListSchedulersRequest, ...grpc.CallOption) (*managerv2.ListSchedulersResponse, error) // Get object storage configuration. GetObjectStorage(context.Context, *managerv2.GetObjectStorageRequest, ...grpc.CallOption) (*managerv2.ObjectStorage, error) // List buckets configuration. ListBuckets(context.Context, *managerv2.ListBucketsRequest, ...grpc.CallOption) (*managerv2.ListBucketsResponse, error) // List models information. ListModels(context.Context, *managerv2.ListModelsRequest, ...grpc.CallOption) (*managerv2.ListModelsResponse, error) // Get model information. GetModel(context.Context, *managerv2.GetModelRequest, ...grpc.CallOption) (*managerv2.Model, error) // Create model information. CreateModel(context.Context, *managerv2.CreateModelRequest, ...grpc.CallOption) (*managerv2.Model, error) // Update model information. UpdateModel(context.Context, *managerv2.UpdateModelRequest, ...grpc.CallOption) (*managerv2.Model, error) // Delete model information. DeleteModel(context.Context, *managerv2.DeleteModelRequest, ...grpc.CallOption) error // List model versions information. ListModelVersions(context.Context, *managerv2.ListModelVersionsRequest, ...grpc.CallOption) (*managerv2.ListModelVersionsResponse, error) // Get model version information. GetModelVersion(context.Context, *managerv2.GetModelVersionRequest, ...grpc.CallOption) (*managerv2.ModelVersion, error) // Create model version information. CreateModelVersion(context.Context, *managerv2.CreateModelVersionRequest, ...grpc.CallOption) (*managerv2.ModelVersion, error) // Update model version information. UpdateModelVersion(context.Context, *managerv2.UpdateModelVersionRequest, ...grpc.CallOption) (*managerv2.ModelVersion, error) // Delete model version information. DeleteModelVersion(context.Context, *managerv2.DeleteModelVersionRequest, ...grpc.CallOption) error // List applications configuration. ListApplications(context.Context, *managerv2.ListApplicationsRequest, ...grpc.CallOption) (*managerv2.ListApplicationsResponse, error) // KeepAlive with manager. KeepAlive(time.Duration, *managerv2.KeepAliveRequest, <-chan struct{}, ...grpc.CallOption) // Close tears down the ClientConn and all underlying connections. Close() error }
V2 is the interface for v2 version of the grpc client.
func GetV2ByAddr ¶ added in v2.0.9
func GetV2ByAddr(ctx context.Context, netAddrs []dfnet.NetAddr, opts ...grpc.DialOption) (V2, error)
GetV2ByAddr returns v2 version of the manager client with addresses.
Click to show internal directories.
Click to hide internal directories.