| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This package is not in the latest version of its module.
Go to latest Published: Oct 11, 2024 License: Apache-2.0The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Modules with tagged versions give importers more predictable builds.
When a project reaches major version v1 it is considered stable.
const CreateFunctionResponseFunctionAPIBodyFormatCustom = shared.CreateFunctionResponseFunctionAPIBodyFormatCustom
This is an alias to an internal value.
const CreateFunctionResponseFunctionAPIBodyFormatPredictV2 = shared.CreateFunctionResponseFunctionAPIBodyFormatPredictV2
This is an alias to an internal value.
const CreateFunctionResponseFunctionActiveInstancesInstanceStatusActive = shared.CreateFunctionResponseFunctionActiveInstancesInstanceStatusActive
This is an alias to an internal value.
const CreateFunctionResponseFunctionActiveInstancesInstanceStatusDeleted = shared.CreateFunctionResponseFunctionActiveInstancesInstanceStatusDeleted
This is an alias to an internal value.
const CreateFunctionResponseFunctionActiveInstancesInstanceStatusErrored = shared.CreateFunctionResponseFunctionActiveInstancesInstanceStatusErrored
This is an alias to an internal value.
const CreateFunctionResponseFunctionActiveInstancesInstanceStatusPreempted = shared.CreateFunctionResponseFunctionActiveInstancesInstanceStatusPreempted
This is an alias to an internal value.
const CreateFunctionResponseFunctionFunctionTypeDefault = shared.CreateFunctionResponseFunctionFunctionTypeDefault
This is an alias to an internal value.
const CreateFunctionResponseFunctionFunctionTypeStreaming = shared.CreateFunctionResponseFunctionFunctionTypeStreaming
This is an alias to an internal value.
const CreateFunctionResponseFunctionHealthProtocolGRpc = shared.CreateFunctionResponseFunctionHealthProtocolGRpc
This is an alias to an internal value.
const CreateFunctionResponseFunctionHealthProtocolHTTP = shared.CreateFunctionResponseFunctionHealthProtocolHTTP
This is an alias to an internal value.
const CreateFunctionResponseFunctionStatusActive = shared.CreateFunctionResponseFunctionStatusActive
This is an alias to an internal value.
const CreateFunctionResponseFunctionStatusDeleted = shared.CreateFunctionResponseFunctionStatusDeleted
This is an alias to an internal value.
const CreateFunctionResponseFunctionStatusDeploying = shared.CreateFunctionResponseFunctionStatusDeploying
This is an alias to an internal value.
const CreateFunctionResponseFunctionStatusError = shared.CreateFunctionResponseFunctionStatusError
This is an alias to an internal value.
const CreateFunctionResponseFunctionStatusInactive = shared.CreateFunctionResponseFunctionStatusInactive
This is an alias to an internal value.
const FunctionResponseFunctionAPIBodyFormatCustom = shared.FunctionResponseFunctionAPIBodyFormatCustom
This is an alias to an internal value.
const FunctionResponseFunctionAPIBodyFormatPredictV2 = shared.FunctionResponseFunctionAPIBodyFormatPredictV2
This is an alias to an internal value.
const FunctionResponseFunctionActiveInstancesInstanceStatusActive = shared.FunctionResponseFunctionActiveInstancesInstanceStatusActive
This is an alias to an internal value.
const FunctionResponseFunctionActiveInstancesInstanceStatusDeleted = shared.FunctionResponseFunctionActiveInstancesInstanceStatusDeleted
This is an alias to an internal value.
const FunctionResponseFunctionActiveInstancesInstanceStatusErrored = shared.FunctionResponseFunctionActiveInstancesInstanceStatusErrored
This is an alias to an internal value.
const FunctionResponseFunctionActiveInstancesInstanceStatusPreempted = shared.FunctionResponseFunctionActiveInstancesInstanceStatusPreempted
This is an alias to an internal value.
const FunctionResponseFunctionFunctionTypeDefault = shared.FunctionResponseFunctionFunctionTypeDefault
This is an alias to an internal value.
const FunctionResponseFunctionFunctionTypeStreaming = shared.FunctionResponseFunctionFunctionTypeStreaming
This is an alias to an internal value.
const FunctionResponseFunctionHealthProtocolGRpc = shared.FunctionResponseFunctionHealthProtocolGRpc
This is an alias to an internal value.
const FunctionResponseFunctionHealthProtocolHTTP = shared.FunctionResponseFunctionHealthProtocolHTTP
This is an alias to an internal value.
const FunctionResponseFunctionStatusActive = shared.FunctionResponseFunctionStatusActive
This is an alias to an internal value.
const FunctionResponseFunctionStatusDeleted = shared.FunctionResponseFunctionStatusDeleted
This is an alias to an internal value.
const FunctionResponseFunctionStatusDeploying = shared.FunctionResponseFunctionStatusDeploying
This is an alias to an internal value.
const FunctionResponseFunctionStatusError = shared.FunctionResponseFunctionStatusError
This is an alias to an internal value.
const FunctionResponseFunctionStatusInactive = shared.FunctionResponseFunctionStatusInactive
This is an alias to an internal value.
const GetQueuesResponseQueuesFunctionStatusActive = shared.GetQueuesResponseQueuesFunctionStatusActive
This is an alias to an internal value.
const GetQueuesResponseQueuesFunctionStatusDeleted = shared.GetQueuesResponseQueuesFunctionStatusDeleted
This is an alias to an internal value.
const GetQueuesResponseQueuesFunctionStatusDeploying = shared.GetQueuesResponseQueuesFunctionStatusDeploying
This is an alias to an internal value.
const GetQueuesResponseQueuesFunctionStatusError = shared.GetQueuesResponseQueuesFunctionStatusError
This is an alias to an internal value.
const GetQueuesResponseQueuesFunctionStatusInactive = shared.GetQueuesResponseQueuesFunctionStatusInactive
This is an alias to an internal value.
const InvokeFunctionResponseStatusErrored = shared.InvokeFunctionResponseStatusErrored
This is an alias to an internal value.
const InvokeFunctionResponseStatusFulfilled = shared.InvokeFunctionResponseStatusFulfilled
This is an alias to an internal value.
const InvokeFunctionResponseStatusInProgress = shared.InvokeFunctionResponseStatusInProgress
This is an alias to an internal value.
const InvokeFunctionResponseStatusPendingEvaluation = shared.InvokeFunctionResponseStatusPendingEvaluation
This is an alias to an internal value.
const InvokeFunctionResponseStatusRejected = shared.InvokeFunctionResponseStatusRejected
This is an alias to an internal value.
const ListFunctionsResponseFunctionsAPIBodyFormatCustom = shared.ListFunctionsResponseFunctionsAPIBodyFormatCustom
This is an alias to an internal value.
const ListFunctionsResponseFunctionsAPIBodyFormatPredictV2 = shared.ListFunctionsResponseFunctionsAPIBodyFormatPredictV2
This is an alias to an internal value.
const ListFunctionsResponseFunctionsActiveInstancesInstanceStatusActive = shared.ListFunctionsResponseFunctionsActiveInstancesInstanceStatusActive
This is an alias to an internal value.
const ListFunctionsResponseFunctionsActiveInstancesInstanceStatusDeleted = shared.ListFunctionsResponseFunctionsActiveInstancesInstanceStatusDeleted
This is an alias to an internal value.
const ListFunctionsResponseFunctionsActiveInstancesInstanceStatusErrored = shared.ListFunctionsResponseFunctionsActiveInstancesInstanceStatusErrored
This is an alias to an internal value.
const ListFunctionsResponseFunctionsActiveInstancesInstanceStatusPreempted = shared.ListFunctionsResponseFunctionsActiveInstancesInstanceStatusPreempted
This is an alias to an internal value.
const ListFunctionsResponseFunctionsFunctionTypeDefault = shared.ListFunctionsResponseFunctionsFunctionTypeDefault
This is an alias to an internal value.
const ListFunctionsResponseFunctionsFunctionTypeStreaming = shared.ListFunctionsResponseFunctionsFunctionTypeStreaming
This is an alias to an internal value.
const ListFunctionsResponseFunctionsHealthProtocolGRpc = shared.ListFunctionsResponseFunctionsHealthProtocolGRpc
This is an alias to an internal value.
const ListFunctionsResponseFunctionsHealthProtocolHTTP = shared.ListFunctionsResponseFunctionsHealthProtocolHTTP
This is an alias to an internal value.
const ListFunctionsResponseFunctionsStatusActive = shared.ListFunctionsResponseFunctionsStatusActive
This is an alias to an internal value.
const ListFunctionsResponseFunctionsStatusDeleted = shared.ListFunctionsResponseFunctionsStatusDeleted
This is an alias to an internal value.
const ListFunctionsResponseFunctionsStatusDeploying = shared.ListFunctionsResponseFunctionsStatusDeploying
This is an alias to an internal value.
const ListFunctionsResponseFunctionsStatusError = shared.ListFunctionsResponseFunctionsStatusError
This is an alias to an internal value.
const ListFunctionsResponseFunctionsStatusInactive = shared.ListFunctionsResponseFunctionsStatusInactive
This is an alias to an internal value.
This section is empty.
F is a param field helper used to initialize a param.Field generic struct. This helps specify null, zero values, and overrides, as well as normal values. You can read more about this in our README.
Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.
Raw is a param field helper for specifying values for fields when the type you are looking to send is different from the type that is specified in the SDK. For example, if the type of the field is an integer, but you want to send a float, you could do that by setting the corresponding field with Raw[int](0.5).
type AssetManagementAssetService struct {
Options []option.RequestOption
}
AssetManagementAssetService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAssetManagementAssetService method instead.
func NewAssetManagementAssetService(opts ...option.RequestOption) (r *AssetManagementAssetService)
NewAssetManagementAssetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *AssetManagementAssetService) Delete(ctx context.Context, assetID string, opts ...option.RequestOption) (err error)
Deletes asset belonging to the current NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header.
func (r *AssetManagementAssetService) Get(ctx context.Context, assetID string, opts ...option.RequestOption) (res *AssetResponse, err error)
Returns details for the specified asset-id belonging to the current NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header.
type AssetManagementService struct {
Options []option.RequestOption
Assets *AssetManagementAssetService
}
AssetManagementService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAssetManagementService method instead.
func NewAssetManagementService(opts ...option.RequestOption) (r *AssetManagementService)
NewAssetManagementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AssetNewParams struct {
// Content type of the asset such image/png, image/jpeg, etc.
ContentType param.Field[string] `json:"contentType,required"`
// Asset description
Description param.Field[string] `json:"description,required"`
}
func (r AssetNewParams) MarshalJSON() (data []byte, err error)
type AssetResponse struct {
// Data Transfer Object(DTO) representing an asset
Asset AssetResponseAsset `json:"asset"`
JSON assetResponseJSON `json:"-"`
}
func (r *AssetResponse) UnmarshalJSON(data []byte) (err error)
type AssetResponseAsset struct {
// Asset id
AssetID string `json:"assetId" format:"uuid"`
// Content-type specified when creating the asset
ContentType string `json:"contentType"`
// Description specified when creating the asset
Description string `json:"description"`
JSON assetResponseAssetJSON `json:"-"`
}
Data Transfer Object(DTO) representing an asset
func (r *AssetResponseAsset) UnmarshalJSON(data []byte) (err error)
type AssetService struct {
Options []option.RequestOption
}
AssetService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAssetService method instead.
func NewAssetService(opts ...option.RequestOption) (r *AssetService)
NewAssetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *AssetService) List(ctx context.Context, opts ...option.RequestOption) (res *ListAssetsResponse, err error)
List assets owned by the current NVIDIA Cloud Account. Requires either a bearer token or an api-key with invoke_function scope in the HTTP Authorization header.
func (r *AssetService) New(ctx context.Context, body AssetNewParams, opts ...option.RequestOption) (res *CreateAssetResponse, err error)
Creates a unique id representing an asset and a pre-signed URL to upload the asset artifact to AWS S3 bucket for the NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header.
type AuthorizationFunctionAddParams struct {
// Data Transfer Object(DTO) representing an authorized party.
AuthorizedParty param.Field[AuthorizationFunctionAddParamsAuthorizedParty] `json:"authorizedParty,required"`
}
func (r AuthorizationFunctionAddParams) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionAddParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r AuthorizationFunctionAddParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionRemoveParams struct {
// Data Transfer Object(DTO) representing an authorized party.
AuthorizedParty param.Field[AuthorizationFunctionRemoveParamsAuthorizedParty] `json:"authorizedParty,required"`
}
func (r AuthorizationFunctionRemoveParams) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionRemoveParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r AuthorizationFunctionRemoveParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionService struct {
Options []option.RequestOption
Versions *AuthorizationFunctionVersionService
}
AuthorizationFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAuthorizationFunctionService method instead.
func NewAuthorizationFunctionService(opts ...option.RequestOption) (r *AuthorizationFunctionService)
NewAuthorizationFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *AuthorizationFunctionService) Add(ctx context.Context, functionID string, body AuthorizationFunctionAddParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Adds the specified NVIDIA Cloud Account to the set of authorized accounts that are can invoke all the versions of the specified function. If the specified function does not have any existing inheritable authorized accounts, it results in a response with status 404. If the specified account is already in the set of existing inheritable authorized accounts, it results in a response with status code 409. If a function is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *AuthorizationFunctionService) Remove(ctx context.Context, functionID string, body AuthorizationFunctionRemoveParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Removes the specified NVIDIA Cloud Account from the set of authorized accounts that can invoke all the versions of the specified function. If the specified function does not have any existing inheritable authorized parties, it results in a response with status 404. Also, if the specified account is not in the existing set of inheritable authorized accounts, it results in a response with status 400. If the specified function is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
type AuthorizationFunctionVersionAddParams struct {
// Data Transfer Object(DTO) representing an authorized party.
AuthorizedParty param.Field[AuthorizationFunctionVersionAddParamsAuthorizedParty] `json:"authorizedParty,required"`
}
func (r AuthorizationFunctionVersionAddParams) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionVersionAddParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r AuthorizationFunctionVersionAddParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionVersionRemoveParams struct {
// Data Transfer Object(DTO) representing an authorized party.
AuthorizedParty param.Field[AuthorizationFunctionVersionRemoveParamsAuthorizedParty] `json:"authorizedParty,required"`
}
func (r AuthorizationFunctionVersionRemoveParams) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionVersionRemoveParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r AuthorizationFunctionVersionRemoveParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type AuthorizationFunctionVersionService struct {
Options []option.RequestOption
}
AuthorizationFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAuthorizationFunctionVersionService method instead.
func NewAuthorizationFunctionVersionService(opts ...option.RequestOption) (r *AuthorizationFunctionVersionService)
NewAuthorizationFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *AuthorizationFunctionVersionService) Add(ctx context.Context, functionID string, functionVersionID string, body AuthorizationFunctionVersionAddParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Adds the specified NVIDIA Cloud Account to the set of authorized accounts that can invoke the specified function version. If the specified function version does not have any existing inheritable authorized accounts, it results in a response with status 404. If the specified account is already in the set of existing authorized accounts that are directly associated with the function version, it results in a response wit status code 409. If a function is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *AuthorizationFunctionVersionService) Remove(ctx context.Context, functionID string, functionVersionID string, body AuthorizationFunctionVersionRemoveParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Removes the specified NVIDIA Cloud Account from the set of authorized accounts that are directly associated with specified function version. If the specified function version does not have any of its own(not inherited) authorized accounts, it results in a response with status 404. Also, if the specified authorized account is not in the set of existing authorized parties that are directly associated with the specified function version, it results in a response with status code 400. If the specified function version is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
type AuthorizationService struct {
Options []option.RequestOption
Functions *AuthorizationFunctionService
}
AuthorizationService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAuthorizationService method instead.
func NewAuthorizationService(opts ...option.RequestOption) (r *AuthorizationService)
NewAuthorizationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type AuthorizedPartiesResponse = shared.AuthorizedPartiesResponse
Parties authorized to invoke function
This is an alias to an internal type.
type AuthorizedPartiesResponseFunction = shared.AuthorizedPartiesResponseFunction
Data Transfer Object(DTO) representing a function with authorized accounts
This is an alias to an internal type.
type AuthorizedPartiesResponseFunctionAuthorizedParty = shared.AuthorizedPartiesResponseFunctionAuthorizedParty
Data Transfer Object(DTO) representing an authorized party.
This is an alias to an internal type.
type Client struct {
Options []option.RequestOption
UserSecretManagement *UserSecretManagementService
FunctionManagement *FunctionManagementService
FunctionDeployment *FunctionDeploymentService
FunctionInvocation *FunctionInvocationService
EnvelopeFunctionInvocation *EnvelopeFunctionInvocationService
Nvcf *NvcfService
Assets *AssetService
Authorizations *AuthorizationService
Queues *QueueService
Pexec *PexecService
ClusterGroupsAndGPUs *ClusterGroupsAndGPUService
ClientManagementForNvidiaSuperAdmins *ClientManagementForNvidiaSuperAdminService
AssetManagement *AssetManagementService
}
Client creates a struct with services and top level methods that help with interacting with the nvidia-cloud-functions API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient(opts ...option.RequestOption) (r *Client)
NewClient generates a new client with the default option read from the environment (). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.
If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.
The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned url.Values will be used as query strings to the url.
If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.
Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.
The response body will be deserialized into the res variable, depending on its type:
For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.
func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error
Post makes a POST request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
type ClientManagementForNvidiaSuperAdminClientGetResponse struct {
// Data Transfer Object(DTO) representing a client
Client ClientManagementForNvidiaSuperAdminClientGetResponseClient `json:"client,required"`
JSON clientManagementForNvidiaSuperAdminClientGetResponseJSON `json:"-"`
}
Response body for client.
func (r *ClientManagementForNvidiaSuperAdminClientGetResponse) UnmarshalJSON(data []byte) (err error)
type ClientManagementForNvidiaSuperAdminClientGetResponseClient struct {
// Name of the associated NVIDIA Cloud Account
Name string `json:"name,required"`
// Associated NVIDIA Cloud Account id
NcaID string `json:"ncaId,required"`
// Client Id
ClientID string `json:"clientId"`
JSON clientManagementForNvidiaSuperAdminClientGetResponseClientJSON `json:"-"`
}
Data Transfer Object(DTO) representing a client
func (r *ClientManagementForNvidiaSuperAdminClientGetResponseClient) UnmarshalJSON(data []byte) (err error)
type ClientManagementForNvidiaSuperAdminClientService struct {
Options []option.RequestOption
}
ClientManagementForNvidiaSuperAdminClientService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewClientManagementForNvidiaSuperAdminClientService method instead.
func NewClientManagementForNvidiaSuperAdminClientService(opts ...option.RequestOption) (r *ClientManagementForNvidiaSuperAdminClientService)
NewClientManagementForNvidiaSuperAdminClientService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *ClientManagementForNvidiaSuperAdminClientService) Get(ctx context.Context, clientID string, opts ...option.RequestOption) (res *ClientManagementForNvidiaSuperAdminClientGetResponse, err error)
Gets details of the specified client.Requires a bearer token in the HTTP Authorization header with 'account_setup' scope. These endpoints are invoked by NVIDIA Super Admins working across accounts.
type ClientManagementForNvidiaSuperAdminService struct {
Options []option.RequestOption
Clients *ClientManagementForNvidiaSuperAdminClientService
}
ClientManagementForNvidiaSuperAdminService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewClientManagementForNvidiaSuperAdminService method instead.
func NewClientManagementForNvidiaSuperAdminService(opts ...option.RequestOption) (r *ClientManagementForNvidiaSuperAdminService)
NewClientManagementForNvidiaSuperAdminService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type ClusterGroupsAndGPUClusterGroupService struct {
Options []option.RequestOption
}
ClusterGroupsAndGPUClusterGroupService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewClusterGroupsAndGPUClusterGroupService method instead.
func NewClusterGroupsAndGPUClusterGroupService(opts ...option.RequestOption) (r *ClusterGroupsAndGPUClusterGroupService)
NewClusterGroupsAndGPUClusterGroupService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *ClusterGroupsAndGPUClusterGroupService) List(ctx context.Context, opts ...option.RequestOption) (res *ClusterGroupsResponse, err error)
Lists Cluster Groups for the current account. The response includes cluster groups defined specifically in the current account and publicly available cluster groups such as GFN, OCI, etc. Requires a bearer token with 'list_cluster_groups' scope in HTTP Authorization header.
type ClusterGroupsAndGPUService struct {
Options []option.RequestOption
ClusterGroups *ClusterGroupsAndGPUClusterGroupService
}
ClusterGroupsAndGPUService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewClusterGroupsAndGPUService method instead.
func NewClusterGroupsAndGPUService(opts ...option.RequestOption) (r *ClusterGroupsAndGPUService)
NewClusterGroupsAndGPUService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type ClusterGroupsResponse struct {
ClusterGroups []ClusterGroupsResponseClusterGroup `json:"clusterGroups"`
JSON clusterGroupsResponseJSON `json:"-"`
}
func (r *ClusterGroupsResponse) UnmarshalJSON(data []byte) (err error)
type ClusterGroupsResponseClusterGroup struct {
ID string `json:"id" format:"uuid"`
AuthorizedNcaIDs []string `json:"authorizedNcaIds"`
Clusters []ClusterGroupsResponseClusterGroupsCluster `json:"clusters"`
GPUs []ClusterGroupsResponseClusterGroupsGPU `json:"gpus"`
Name string `json:"name"`
NcaID string `json:"ncaId"`
JSON clusterGroupsResponseClusterGroupJSON `json:"-"`
}
func (r *ClusterGroupsResponseClusterGroup) UnmarshalJSON(data []byte) (err error)
type ClusterGroupsResponseClusterGroupsCluster struct {
ID string `json:"id"`
K8sVersion string `json:"k8sVersion"`
Name string `json:"name"`
JSON clusterGroupsResponseClusterGroupsClusterJSON `json:"-"`
}
func (r *ClusterGroupsResponseClusterGroupsCluster) UnmarshalJSON(data []byte) (err error)
type ClusterGroupsResponseClusterGroupsGPU struct {
InstanceTypes []ClusterGroupsResponseClusterGroupsGPUsInstanceType `json:"instanceTypes"`
Name string `json:"name"`
JSON clusterGroupsResponseClusterGroupsGPUJSON `json:"-"`
}
func (r *ClusterGroupsResponseClusterGroupsGPU) UnmarshalJSON(data []byte) (err error)
type ClusterGroupsResponseClusterGroupsGPUsInstanceType struct {
Default bool `json:"default"`
Description string `json:"description"`
Name string `json:"name"`
JSON clusterGroupsResponseClusterGroupsGPUsInstanceTypeJSON `json:"-"`
}
func (r *ClusterGroupsResponseClusterGroupsGPUsInstanceType) UnmarshalJSON(data []byte) (err error)
type CreateAssetResponse struct {
// Unique id of the asset to be uploaded to AWS S3 bucket
AssetID string `json:"assetId" format:"uuid"`
// Content type of the asset such image/png, image/jpeg, etc.
ContentType string `json:"contentType"`
// Asset description to be used when uploading the asset
Description string `json:"description"`
// Pre-signed upload URL to upload asset
UploadURL string `json:"uploadUrl" format:"url"`
JSON createAssetResponseJSON `json:"-"`
}
Response body containing asset-id and the corresponding pre-signed URL to upload an asset of specified content-type to AWS S3 bucket.
func (r *CreateAssetResponse) UnmarshalJSON(data []byte) (err error)
type CreateFunctionResponse = shared.CreateFunctionResponse
Response body for create function request.
This is an alias to an internal type.
type CreateFunctionResponseFunction = shared.CreateFunctionResponseFunction
Data Transfer Object (DTO) representing a function
This is an alias to an internal type.
type CreateFunctionResponseFunctionAPIBodyFormat = shared.CreateFunctionResponseFunctionAPIBodyFormat
Invocation request body format
This is an alias to an internal type.
type CreateFunctionResponseFunctionActiveInstance = shared.CreateFunctionResponseFunctionActiveInstance
Data Transfer Object(DTO) representing a spot instance
This is an alias to an internal type.
type CreateFunctionResponseFunctionActiveInstancesInstanceStatus = shared.CreateFunctionResponseFunctionActiveInstancesInstanceStatus
Instance status
This is an alias to an internal type.
type CreateFunctionResponseFunctionContainerEnvironment = shared.CreateFunctionResponseFunctionContainerEnvironment
Data Transfer Object(DTO) representing a container environment entry
This is an alias to an internal type.
type CreateFunctionResponseFunctionFunctionType = shared.CreateFunctionResponseFunctionFunctionType
Used to indicate a STREAMING function. Defaults to DEFAULT.
This is an alias to an internal type.
type CreateFunctionResponseFunctionHealth = shared.CreateFunctionResponseFunctionHealth
Data Transfer Object(DTO) representing a function ne
This is an alias to an internal type.
type CreateFunctionResponseFunctionHealthProtocol = shared.CreateFunctionResponseFunctionHealthProtocol
HTTP/gPRC protocol type for health endpoint
This is an alias to an internal type.
type CreateFunctionResponseFunctionModel = shared.CreateFunctionResponseFunctionModel
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type CreateFunctionResponseFunctionResource = shared.CreateFunctionResponseFunctionResource
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type CreateFunctionResponseFunctionStatus = shared.CreateFunctionResponseFunctionStatus
Function status
This is an alias to an internal type.
type DeploymentResponse struct {
// Function deployment response
Deployment DeploymentResponseDeployment `json:"deployment,required"`
JSON deploymentResponseJSON `json:"-"`
}
Function Deployment Response
func (r *DeploymentResponse) UnmarshalJSON(data []byte) (err error)
type DeploymentResponseDeployment struct {
// Function deployment creation timestamp
CreatedAt time.Time `json:"createdAt,required" format:"date-time"`
// Function deployment details
DeploymentSpecifications []DeploymentResponseDeploymentDeploymentSpecification `json:"deploymentSpecifications,required"`
// Function id
FunctionID string `json:"functionId,required" format:"uuid"`
// Function name
FunctionName string `json:"functionName,required"`
// Function status
FunctionStatus DeploymentResponseDeploymentFunctionStatus `json:"functionStatus,required"`
// Function version id
FunctionVersionID string `json:"functionVersionId,required" format:"uuid"`
// NVIDIA Cloud Account Id
NcaID string `json:"ncaId,required"`
// Health info for a deployment specification is included only if there are any
// issues/errors.
HealthInfo []DeploymentResponseDeploymentHealthInfo `json:"healthInfo"`
// Deprecated Request Queue URL
RequestQueueURL string `json:"requestQueueUrl"`
JSON deploymentResponseDeploymentJSON `json:"-"`
}
Function deployment response
func (r *DeploymentResponseDeployment) UnmarshalJSON(data []byte) (err error)
type DeploymentResponseDeploymentDeploymentSpecification struct {
// GPU name from the cluster
GPU string `json:"gpu,required"`
// Instance type, based on GPU, assigned to a Worker
InstanceType string `json:"instanceType,required"`
// Maximum number of spot instances for the deployment
MaxInstances int64 `json:"maxInstances,required"`
// Minimum number of spot instances for the deployment
MinInstances int64 `json:"minInstances,required"`
// Specific attributes capabilities to deploy functions.
Attributes []string `json:"attributes"`
// List of availability-zones(or clusters) in the cluster group
AvailabilityZones []string `json:"availabilityZones"`
// Backend/CSP where the GPU powered instance will be launched
Backend string `json:"backend"`
// Specific clusters within spot instance or worker node powered by the selected
// instance-type to deploy function.
Clusters []string `json:"clusters"`
Configuration interface{} `json:"configuration"`
// Max request concurrency between 1 (default) and 1024.
MaxRequestConcurrency int64 `json:"maxRequestConcurrency"`
// Preferred order of deployment if there are several gpu specs.
PreferredOrder int64 `json:"preferredOrder"`
// List of regions allowed to deploy. The instance or worker node will be in one of
// the specified geographical regions.
Regions []string `json:"regions"`
JSON deploymentResponseDeploymentDeploymentSpecificationJSON `json:"-"`
}
Data Transfer Object(DTO) representing GPU specification.
func (r *DeploymentResponseDeploymentDeploymentSpecification) UnmarshalJSON(data []byte) (err error)
type DeploymentResponseDeploymentFunctionStatus string
Function status
const ( DeploymentResponseDeploymentFunctionStatusActive DeploymentResponseDeploymentFunctionStatus = "ACTIVE" DeploymentResponseDeploymentFunctionStatusDeploying DeploymentResponseDeploymentFunctionStatus = "DEPLOYING" DeploymentResponseDeploymentFunctionStatusError DeploymentResponseDeploymentFunctionStatus = "ERROR" DeploymentResponseDeploymentFunctionStatusInactive DeploymentResponseDeploymentFunctionStatus = "INACTIVE" DeploymentResponseDeploymentFunctionStatusDeleted DeploymentResponseDeploymentFunctionStatus = "DELETED" )
func (r DeploymentResponseDeploymentFunctionStatus) IsKnown() bool
type DeploymentResponseDeploymentHealthInfo struct {
// Backend/CSP where the GPU powered instance will be launched
Backend string `json:"backend,required"`
// Deployment error
Error string `json:"error,required"`
// GPU Type as per SDD
GPU string `json:"gpu,required"`
// Instance type
InstanceType string `json:"instanceType"`
// SIS Request ID
SisRequestID string `json:"sisRequestId" format:"uuid"`
JSON deploymentResponseDeploymentHealthInfoJSON `json:"-"`
}
Data Transfer Object(DTO) representing deployment error
func (r *DeploymentResponseDeploymentHealthInfo) UnmarshalJSON(data []byte) (err error)
type EnvelopeFunctionInvocationExecService struct {
Options []option.RequestOption
Status *EnvelopeFunctionInvocationExecStatusService
}
EnvelopeFunctionInvocationExecService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEnvelopeFunctionInvocationExecService method instead.
func NewEnvelopeFunctionInvocationExecService(opts ...option.RequestOption) (r *EnvelopeFunctionInvocationExecService)
NewEnvelopeFunctionInvocationExecService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type EnvelopeFunctionInvocationExecStatusService struct {
Options []option.RequestOption
}
EnvelopeFunctionInvocationExecStatusService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEnvelopeFunctionInvocationExecStatusService method instead.
func NewEnvelopeFunctionInvocationExecStatusService(opts ...option.RequestOption) (r *EnvelopeFunctionInvocationExecStatusService)
NewEnvelopeFunctionInvocationExecStatusService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *EnvelopeFunctionInvocationExecStatusService) Get(ctx context.Context, requestID string, opts ...option.RequestOption) (res *shared.InvokeFunctionResponse, err error)
Retrieves the status of an in-progress or pending request using its unique invocation request ID. If the result is available, it will be included in the response, marking the request as fulfilled. Conversely, if the result is not yet available, the request is deemed pending. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type EnvelopeFunctionInvocationFunctionInvokeParams struct {
RequestBody param.Field[interface{}] `json:"requestBody,required"`
// Data Transfer Object(DTO) representing header/address for Cloud Functions
// processing.
RequestHeader param.Field[EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeader] `json:"requestHeader"`
}
func (r EnvelopeFunctionInvocationFunctionInvokeParams) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeader struct {
// List of UUIDs corresponding to the uploaded assets to be used as input for
// executing the task.
InputAssetReferences param.Field[[]string] `json:"inputAssetReferences" format:"uuid"`
// Metadata used for billing/metering purposes.
MeteringData param.Field[[]EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeaderMeteringData] `json:"meteringData"`
// Polling timeout duration.
PollDurationSeconds param.Field[int64] `json:"pollDurationSeconds"`
}
Data Transfer Object(DTO) representing header/address for Cloud Functions processing.
func (r EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeader) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeaderMeteringData struct {
// Metering/Billing key
Key param.Field[string] `json:"key,required"`
// Metering/Billing value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing a billing/metering data entry
func (r EnvelopeFunctionInvocationFunctionInvokeParamsRequestHeaderMeteringData) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionService struct {
Options []option.RequestOption
Versions *EnvelopeFunctionInvocationFunctionVersionService
}
EnvelopeFunctionInvocationFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEnvelopeFunctionInvocationFunctionService method instead.
func NewEnvelopeFunctionInvocationFunctionService(opts ...option.RequestOption) (r *EnvelopeFunctionInvocationFunctionService)
NewEnvelopeFunctionInvocationFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *EnvelopeFunctionInvocationFunctionService) Invoke(ctx context.Context, functionID string, body EnvelopeFunctionInvocationFunctionInvokeParams, opts ...option.RequestOption) (res *shared.InvokeFunctionResponse, err error)
Invokes the specified function that was successfully deployed. If the version is not specified, any active function versions will handle the request. If the version is specified in the URI, then the request is exclusively processed by the designated version of the function. By default, this endpoint will block for 5 seconds. If the request is not fulfilled before the timeout, it's status is considered in-progress or pending and the response includes HTTP status code 202 with an invocation request ID, indicating that the client should commence polling for the result using the invocation request ID. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. Additionally, this endpoint has the capability to provide updates on the progress of the request, contingent upon the workload's provision of such information. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type EnvelopeFunctionInvocationFunctionVersionInvokeParams struct {
RequestBody param.Field[interface{}] `json:"requestBody,required"`
// Data Transfer Object(DTO) representing header/address for Cloud Functions
// processing.
RequestHeader param.Field[EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeader] `json:"requestHeader"`
}
func (r EnvelopeFunctionInvocationFunctionVersionInvokeParams) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeader struct {
// List of UUIDs corresponding to the uploaded assets to be used as input for
// executing the task.
InputAssetReferences param.Field[[]string] `json:"inputAssetReferences" format:"uuid"`
// Metadata used for billing/metering purposes.
MeteringData param.Field[[]EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeaderMeteringData] `json:"meteringData"`
// Polling timeout duration.
PollDurationSeconds param.Field[int64] `json:"pollDurationSeconds"`
}
Data Transfer Object(DTO) representing header/address for Cloud Functions processing.
func (r EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeader) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeaderMeteringData struct {
// Metering/Billing key
Key param.Field[string] `json:"key,required"`
// Metering/Billing value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing a billing/metering data entry
func (r EnvelopeFunctionInvocationFunctionVersionInvokeParamsRequestHeaderMeteringData) MarshalJSON() (data []byte, err error)
type EnvelopeFunctionInvocationFunctionVersionService struct {
Options []option.RequestOption
}
EnvelopeFunctionInvocationFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEnvelopeFunctionInvocationFunctionVersionService method instead.
func NewEnvelopeFunctionInvocationFunctionVersionService(opts ...option.RequestOption) (r *EnvelopeFunctionInvocationFunctionVersionService)
NewEnvelopeFunctionInvocationFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *EnvelopeFunctionInvocationFunctionVersionService) Invoke(ctx context.Context, functionID string, versionID string, body EnvelopeFunctionInvocationFunctionVersionInvokeParams, opts ...option.RequestOption) (res *shared.InvokeFunctionResponse, err error)
Invokes the specified function that was successfully deployed. If the version is not specified, any active function versions will handle the request. If the version is specified in the URI, then the request is exclusively processed by the designated version of the function. By default, this endpoint will block for 5 seconds. If the request is not fulfilled before the timeout, it's status is considered in-progress or pending and the response includes HTTP status code 202 with an invocation request ID, indicating that the client should commence polling for the result using the invocation request ID. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. Additionally, this endpoint has the capability to provide updates on the progress of the request, contingent upon the workload's provision of such information. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type EnvelopeFunctionInvocationService struct {
Options []option.RequestOption
Functions *EnvelopeFunctionInvocationFunctionService
Exec *EnvelopeFunctionInvocationExecService
}
EnvelopeFunctionInvocationService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEnvelopeFunctionInvocationService method instead.
func NewEnvelopeFunctionInvocationService(opts ...option.RequestOption) (r *EnvelopeFunctionInvocationService)
NewEnvelopeFunctionInvocationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionDeploymentFunctionService struct {
Options []option.RequestOption
Versions *FunctionDeploymentFunctionVersionService
}
FunctionDeploymentFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionDeploymentFunctionService method instead.
func NewFunctionDeploymentFunctionService(opts ...option.RequestOption) (r *FunctionDeploymentFunctionService)
NewFunctionDeploymentFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionDeploymentFunctionVersionDeleteParams struct {
// Query param to deactivate function for graceful shutdown
Graceful param.Field[bool] `query:"graceful"`
}
func (r FunctionDeploymentFunctionVersionDeleteParams) URLQuery() (v url.Values)
URLQuery serializes FunctionDeploymentFunctionVersionDeleteParams's query parameters as `url.Values`.
type FunctionDeploymentFunctionVersionNewParams struct {
// Deployment specs with Backend, GPU, instance-type, etc. details
DeploymentSpecifications param.Field[[]FunctionDeploymentFunctionVersionNewParamsDeploymentSpecification] `json:"deploymentSpecifications,required"`
}
func (r FunctionDeploymentFunctionVersionNewParams) MarshalJSON() (data []byte, err error)
type FunctionDeploymentFunctionVersionNewParamsDeploymentSpecification struct {
// GPU name from the cluster
GPU param.Field[string] `json:"gpu,required"`
// Instance type, based on GPU, assigned to a Worker
InstanceType param.Field[string] `json:"instanceType,required"`
// Maximum number of spot instances for the deployment
MaxInstances param.Field[int64] `json:"maxInstances,required"`
// Minimum number of spot instances for the deployment
MinInstances param.Field[int64] `json:"minInstances,required"`
// Specific attributes capabilities to deploy functions.
Attributes param.Field[[]string] `json:"attributes"`
// List of availability-zones(or clusters) in the cluster group
AvailabilityZones param.Field[[]string] `json:"availabilityZones"`
// Backend/CSP where the GPU powered instance will be launched
Backend param.Field[string] `json:"backend"`
// Specific clusters within spot instance or worker node powered by the selected
// instance-type to deploy function.
Clusters param.Field[[]string] `json:"clusters"`
Configuration param.Field[interface{}] `json:"configuration"`
// Max request concurrency between 1 (default) and 1024.
MaxRequestConcurrency param.Field[int64] `json:"maxRequestConcurrency"`
// Preferred order of deployment if there are several gpu specs.
PreferredOrder param.Field[int64] `json:"preferredOrder"`
// List of regions allowed to deploy. The instance or worker node will be in one of
// the specified geographical regions.
Regions param.Field[[]string] `json:"regions"`
}
Data Transfer Object(DTO) representing GPU specification.
func (r FunctionDeploymentFunctionVersionNewParamsDeploymentSpecification) MarshalJSON() (data []byte, err error)
type FunctionDeploymentFunctionVersionService struct {
Options []option.RequestOption
}
FunctionDeploymentFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionDeploymentFunctionVersionService method instead.
func NewFunctionDeploymentFunctionVersionService(opts ...option.RequestOption) (r *FunctionDeploymentFunctionVersionService)
NewFunctionDeploymentFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *FunctionDeploymentFunctionVersionService) Delete(ctx context.Context, functionID string, functionVersionID string, body FunctionDeploymentFunctionVersionDeleteParams, opts ...option.RequestOption) (res *shared.FunctionResponse, err error)
Deletes the deployment associated with the specified function. Upon deletion, any active instances will be terminated, and the function's status will transition to 'INACTIVE'. To undeploy a function version gracefully, specify 'graceful=true' query parameter, allowing current tasks to complete before terminating the instances. If the specified function version is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
func (r *FunctionDeploymentFunctionVersionService) Get(ctx context.Context, functionID string, functionVersionID string, opts ...option.RequestOption) (res *DeploymentResponse, err error)
Allows Account Admins to retrieve the deployment details of the specified function version. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
func (r *FunctionDeploymentFunctionVersionService) New(ctx context.Context, functionID string, functionVersionID string, body FunctionDeploymentFunctionVersionNewParams, opts ...option.RequestOption) (res *DeploymentResponse, err error)
Initiates deployment for the specified function version. Upon invocation of this endpoint, the function's status transitions to 'DEPLOYING'. If the specified function version is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
func (r *FunctionDeploymentFunctionVersionService) Update(ctx context.Context, functionID string, functionVersionID string, body FunctionDeploymentFunctionVersionUpdateParams, opts ...option.RequestOption) (res *DeploymentResponse, err error)
Updates the deployment specs of the specified function version. It's important to note that GPU type and backend configurations cannot be modified through this endpoint. If the specified function is public, then Account Admin cannot perform this operation. Access to this endpoint mandates a bearer token with 'deploy_function' scope in the HTTP Authorization header.
type FunctionDeploymentFunctionVersionUpdateParams struct {
// Deployment specs with Backend, GPU, instance-type, etc. details
DeploymentSpecifications param.Field[[]FunctionDeploymentFunctionVersionUpdateParamsDeploymentSpecification] `json:"deploymentSpecifications,required"`
}
func (r FunctionDeploymentFunctionVersionUpdateParams) MarshalJSON() (data []byte, err error)
type FunctionDeploymentFunctionVersionUpdateParamsDeploymentSpecification struct {
// GPU name from the cluster
GPU param.Field[string] `json:"gpu,required"`
// Instance type, based on GPU, assigned to a Worker
InstanceType param.Field[string] `json:"instanceType,required"`
// Maximum number of spot instances for the deployment
MaxInstances param.Field[int64] `json:"maxInstances,required"`
// Minimum number of spot instances for the deployment
MinInstances param.Field[int64] `json:"minInstances,required"`
// Specific attributes capabilities to deploy functions.
Attributes param.Field[[]string] `json:"attributes"`
// List of availability-zones(or clusters) in the cluster group
AvailabilityZones param.Field[[]string] `json:"availabilityZones"`
// Backend/CSP where the GPU powered instance will be launched
Backend param.Field[string] `json:"backend"`
// Specific clusters within spot instance or worker node powered by the selected
// instance-type to deploy function.
Clusters param.Field[[]string] `json:"clusters"`
Configuration param.Field[interface{}] `json:"configuration"`
// Max request concurrency between 1 (default) and 1024.
MaxRequestConcurrency param.Field[int64] `json:"maxRequestConcurrency"`
// Preferred order of deployment if there are several gpu specs.
PreferredOrder param.Field[int64] `json:"preferredOrder"`
// List of regions allowed to deploy. The instance or worker node will be in one of
// the specified geographical regions.
Regions param.Field[[]string] `json:"regions"`
}
Data Transfer Object(DTO) representing GPU specification.
func (r FunctionDeploymentFunctionVersionUpdateParamsDeploymentSpecification) MarshalJSON() (data []byte, err error)
type FunctionDeploymentService struct {
Options []option.RequestOption
Functions *FunctionDeploymentFunctionService
}
FunctionDeploymentService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionDeploymentService method instead.
func NewFunctionDeploymentService(opts ...option.RequestOption) (r *FunctionDeploymentService)
NewFunctionDeploymentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionInvocationFunctionInvokeParams struct {
Body interface{} `json:"body,required"`
NvcfInputAssetReferences param.Field[[]string] `header:"NVCF-INPUT-ASSET-REFERENCES"`
NvcfPollSeconds param.Field[int64] `header:"NVCF-POLL-SECONDS"`
}
func (r FunctionInvocationFunctionInvokeParams) MarshalJSON() (data []byte, err error)
type FunctionInvocationFunctionInvokeResponse struct {
Char string `json:"char"`
Direct bool `json:"direct"`
Double float64 `json:"double"`
Float float64 `json:"float"`
Int int64 `json:"int"`
Long int64 `json:"long"`
ReadOnly bool `json:"readOnly"`
Short int64 `json:"short"`
JSON functionInvocationFunctionInvokeResponseJSON `json:"-"`
}
func (r *FunctionInvocationFunctionInvokeResponse) UnmarshalJSON(data []byte) (err error)
type FunctionInvocationFunctionService struct {
Options []option.RequestOption
Versions *FunctionInvocationFunctionVersionService
}
FunctionInvocationFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionInvocationFunctionService method instead.
func NewFunctionInvocationFunctionService(opts ...option.RequestOption) (r *FunctionInvocationFunctionService)
NewFunctionInvocationFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *FunctionInvocationFunctionService) Invoke(ctx context.Context, functionID string, params FunctionInvocationFunctionInvokeParams, opts ...option.RequestOption) (res *FunctionInvocationFunctionInvokeResponse, err error)
Invokes the specified function that was successfully deployed. If the version is not specified, any active function versions will handle the request. If the version is specified in the URI, then the request is exclusively processed by the designated version of the function. By default, this endpoint will block for 5 seconds. If the request is not fulfilled before the timeout, it's status is considered in-progress or pending and the response includes HTTP status code 202 with an invocation request ID, indicating that the client should commence polling for the result using the invocation request ID. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. Additionally, this endpoint has the capability to provide updates on the progress of the request, contingent upon the workload's provision of such information. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type FunctionInvocationFunctionVersionInvokeParams struct {
Body interface{} `json:"body,required"`
NvcfInputAssetReferences param.Field[[]string] `header:"NVCF-INPUT-ASSET-REFERENCES"`
NvcfPollSeconds param.Field[int64] `header:"NVCF-POLL-SECONDS"`
}
func (r FunctionInvocationFunctionVersionInvokeParams) MarshalJSON() (data []byte, err error)
type FunctionInvocationFunctionVersionInvokeResponse struct {
Char string `json:"char"`
Direct bool `json:"direct"`
Double float64 `json:"double"`
Float float64 `json:"float"`
Int int64 `json:"int"`
Long int64 `json:"long"`
ReadOnly bool `json:"readOnly"`
Short int64 `json:"short"`
JSON functionInvocationFunctionVersionInvokeResponseJSON `json:"-"`
}
func (r *FunctionInvocationFunctionVersionInvokeResponse) UnmarshalJSON(data []byte) (err error)
type FunctionInvocationFunctionVersionService struct {
Options []option.RequestOption
}
FunctionInvocationFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionInvocationFunctionVersionService method instead.
func NewFunctionInvocationFunctionVersionService(opts ...option.RequestOption) (r *FunctionInvocationFunctionVersionService)
NewFunctionInvocationFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *FunctionInvocationFunctionVersionService) Invoke(ctx context.Context, functionID string, versionID string, params FunctionInvocationFunctionVersionInvokeParams, opts ...option.RequestOption) (res *FunctionInvocationFunctionVersionInvokeResponse, err error)
Invokes the specified function that was successfully deployed. If the version is not specified, any active function versions will handle the request. If the version is specified in the URI, then the request is exclusively processed by the designated version of the function. By default, this endpoint will block for 5 seconds. If the request is not fulfilled before the timeout, it's status is considered in-progress or pending and the response includes HTTP status code 202 with an invocation request ID, indicating that the client should commence polling for the result using the invocation request ID. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. Additionally, this endpoint has the capability to provide updates on the progress of the request, contingent upon the workload's provision of such information. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type FunctionInvocationService struct {
Options []option.RequestOption
Functions *FunctionInvocationFunctionService
}
FunctionInvocationService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionInvocationService method instead.
func NewFunctionInvocationService(opts ...option.RequestOption) (r *FunctionInvocationService)
NewFunctionInvocationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionManagementFunctionIDListParams struct {
// Query param 'visibility' indicates the kind of functions to be included in the
// response.
Visibility param.Field[[]FunctionManagementFunctionIDListParamsVisibility] `query:"visibility"`
}
func (r FunctionManagementFunctionIDListParams) URLQuery() (v url.Values)
URLQuery serializes FunctionManagementFunctionIDListParams's query parameters as `url.Values`.
type FunctionManagementFunctionIDListParamsVisibility string
const ( FunctionManagementFunctionIDListParamsVisibilityAuthorized FunctionManagementFunctionIDListParamsVisibility = "authorized" FunctionManagementFunctionIDListParamsVisibilityPrivate FunctionManagementFunctionIDListParamsVisibility = "private" FunctionManagementFunctionIDListParamsVisibilityPublic FunctionManagementFunctionIDListParamsVisibility = "public" )
func (r FunctionManagementFunctionIDListParamsVisibility) IsKnown() bool
type FunctionManagementFunctionIDService struct {
Options []option.RequestOption
}
FunctionManagementFunctionIDService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionManagementFunctionIDService method instead.
func NewFunctionManagementFunctionIDService(opts ...option.RequestOption) (r *FunctionManagementFunctionIDService)
NewFunctionManagementFunctionIDService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *FunctionManagementFunctionIDService) List(ctx context.Context, query FunctionManagementFunctionIDListParams, opts ...option.RequestOption) (res *ListFunctionIDsResponse, err error)
Lists ids of all the functions in the authenticated NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'list_functions' or 'list_functions_details' scopes in the HTTP Authorization header.
type FunctionManagementFunctionService struct {
Options []option.RequestOption
Versions *FunctionManagementFunctionVersionService
IDs *FunctionManagementFunctionIDService
}
FunctionManagementFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionManagementFunctionService method instead.
func NewFunctionManagementFunctionService(opts ...option.RequestOption) (r *FunctionManagementFunctionService)
NewFunctionManagementFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionManagementFunctionVersionService struct {
Options []option.RequestOption
}
FunctionManagementFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionManagementFunctionVersionService method instead.
func NewFunctionManagementFunctionVersionService(opts ...option.RequestOption) (r *FunctionManagementFunctionVersionService)
NewFunctionManagementFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *FunctionManagementFunctionVersionService) Delete(ctx context.Context, functionID string, functionVersionID string, opts ...option.RequestOption) (err error)
Deletes the specified function version in the authenticated NVIDIA Cloud Account. Requires a bearer token with 'delete_function' scope in the HTTP Authorization header. If the function version is public, then Account Admin cannot delete the function.
func (r *FunctionManagementFunctionVersionService) Get(ctx context.Context, functionID string, functionVersionID string, opts ...option.RequestOption) (res *shared.FunctionResponse, err error)
Retrieves detailed information of the specified function version in the authenticated NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'list_functions' or 'list_functions_details' scopes in the HTTP Authorization header.
func (r *FunctionManagementFunctionVersionService) Update(ctx context.Context, functionID string, functionVersionID string, body FunctionManagementFunctionVersionUpdateParams, opts ...option.RequestOption) (res *shared.FunctionResponse, err error)
Updates metadata, such as tags, of the specified function version within the authenticated NVIDIA Cloud Account. Values specified in the payload completely override the existing values. Requires a bearer token with 'update_function' scope in the HTTP Authorization header.
type FunctionManagementFunctionVersionUpdateParams struct {
// Set of tags provided by user
Tags param.Field[[]string] `json:"tags"`
}
func (r FunctionManagementFunctionVersionUpdateParams) MarshalJSON() (data []byte, err error)
type FunctionManagementService struct {
Options []option.RequestOption
Functions *FunctionManagementFunctionService
}
FunctionManagementService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewFunctionManagementService method instead.
func NewFunctionManagementService(opts ...option.RequestOption) (r *FunctionManagementService)
NewFunctionManagementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type FunctionResponse = shared.FunctionResponse
Response body with function details
This is an alias to an internal type.
type FunctionResponseFunction = shared.FunctionResponseFunction
Data Transfer Object (DTO) representing a function
This is an alias to an internal type.
type FunctionResponseFunctionAPIBodyFormat = shared.FunctionResponseFunctionAPIBodyFormat
Invocation request body format
This is an alias to an internal type.
type FunctionResponseFunctionActiveInstance = shared.FunctionResponseFunctionActiveInstance
Data Transfer Object(DTO) representing a spot instance
This is an alias to an internal type.
type FunctionResponseFunctionActiveInstancesInstanceStatus = shared.FunctionResponseFunctionActiveInstancesInstanceStatus
Instance status
This is an alias to an internal type.
type FunctionResponseFunctionContainerEnvironment = shared.FunctionResponseFunctionContainerEnvironment
Data Transfer Object(DTO) representing a container environment entry
This is an alias to an internal type.
type FunctionResponseFunctionFunctionType = shared.FunctionResponseFunctionFunctionType
Used to indicate a STREAMING function. Defaults to DEFAULT.
This is an alias to an internal type.
type FunctionResponseFunctionHealth = shared.FunctionResponseFunctionHealth
Data Transfer Object(DTO) representing a function ne
This is an alias to an internal type.
type FunctionResponseFunctionHealthProtocol = shared.FunctionResponseFunctionHealthProtocol
HTTP/gPRC protocol type for health endpoint
This is an alias to an internal type.
type FunctionResponseFunctionModel = shared.FunctionResponseFunctionModel
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type FunctionResponseFunctionResource = shared.FunctionResponseFunctionResource
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type FunctionResponseFunctionStatus = shared.FunctionResponseFunctionStatus
Function status
This is an alias to an internal type.
type GetPositionInQueueResponse struct {
// Function id
FunctionID string `json:"functionId,required" format:"uuid"`
// Function version id
FunctionVersionID string `json:"functionVersionId,required" format:"uuid"`
// Position of request in queue
PositionInQueue int64 `json:"positionInQueue"`
JSON getPositionInQueueResponseJSON `json:"-"`
}
Request position in queue for invocation request
func (r *GetPositionInQueueResponse) UnmarshalJSON(data []byte) (err error)
type GetQueuesResponse = shared.GetQueuesResponse
Request queue details of all the functions with same id in an account
This is an alias to an internal type.
type GetQueuesResponseQueue = shared.GetQueuesResponseQueue
Data Transfer Object(DTO) representing a request queue for function version
This is an alias to an internal type.
type GetQueuesResponseQueuesFunctionStatus = shared.GetQueuesResponseQueuesFunctionStatus
Function status
This is an alias to an internal type.
type InvokeFunctionResponse = shared.InvokeFunctionResponse
Response body with result from a request for executing a job/task as a cloud function using a GPU powered spot/on-demand instance.
This is an alias to an internal type.
type InvokeFunctionResponseStatus = shared.InvokeFunctionResponseStatus
Status of the task/job executing cloud function.
This is an alias to an internal type.
type ListAssetsResponse struct {
// List of assets uploaded for the nca id
Assets []ListAssetsResponseAsset `json:"assets"`
JSON listAssetsResponseJSON `json:"-"`
}
Response body containing list of assets of the current nca id
func (r *ListAssetsResponse) UnmarshalJSON(data []byte) (err error)
type ListAssetsResponseAsset struct {
// Asset id
AssetID string `json:"assetId" format:"uuid"`
// Content-type specified when creating the asset
ContentType string `json:"contentType"`
// Description specified when creating the asset
Description string `json:"description"`
JSON listAssetsResponseAssetJSON `json:"-"`
}
Data Transfer Object(DTO) representing an asset
func (r *ListAssetsResponseAsset) UnmarshalJSON(data []byte) (err error)
type ListAuthorizedPartiesResponse struct {
// Functions with authorized parties and other details
Functions []ListAuthorizedPartiesResponseFunction `json:"functions,required"`
JSON listAuthorizedPartiesResponseJSON `json:"-"`
}
Parties authorized to invoke function
func (r *ListAuthorizedPartiesResponse) UnmarshalJSON(data []byte) (err error)
type ListAuthorizedPartiesResponseFunction struct {
// Function id
ID string `json:"id,required" format:"uuid"`
// NVIDIA Cloud Account Id
NcaID string `json:"ncaId,required"`
// Authorized parties allowed to invoke the function
AuthorizedParties []ListAuthorizedPartiesResponseFunctionsAuthorizedParty `json:"authorizedParties"`
// Function version id
VersionID string `json:"versionId" format:"uuid"`
JSON listAuthorizedPartiesResponseFunctionJSON `json:"-"`
}
Data Transfer Object(DTO) representing a function with authorized accounts
func (r *ListAuthorizedPartiesResponseFunction) UnmarshalJSON(data []byte) (err error)
type ListAuthorizedPartiesResponseFunctionsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID string `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID string `json:"clientId"`
JSON listAuthorizedPartiesResponseFunctionsAuthorizedPartyJSON `json:"-"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r *ListAuthorizedPartiesResponseFunctionsAuthorizedParty) UnmarshalJSON(data []byte) (err error)
type ListFunctionIDsResponse struct {
// List of function ids
FunctionIDs []string `json:"functionIds,required" format:"uuid"`
JSON listFunctionIDsResponseJSON `json:"-"`
}
Response body containing list of function ids in an account
func (r *ListFunctionIDsResponse) UnmarshalJSON(data []byte) (err error)
type ListFunctionsResponse = shared.ListFunctionsResponse
Response body containing list of functions
This is an alias to an internal type.
type ListFunctionsResponseFunction = shared.ListFunctionsResponseFunction
Data Transfer Object (DTO) representing a function
This is an alias to an internal type.
type ListFunctionsResponseFunctionsAPIBodyFormat = shared.ListFunctionsResponseFunctionsAPIBodyFormat
Invocation request body format
This is an alias to an internal type.
type ListFunctionsResponseFunctionsActiveInstance = shared.ListFunctionsResponseFunctionsActiveInstance
Data Transfer Object(DTO) representing a spot instance
This is an alias to an internal type.
type ListFunctionsResponseFunctionsActiveInstancesInstanceStatus = shared.ListFunctionsResponseFunctionsActiveInstancesInstanceStatus
Instance status
This is an alias to an internal type.
type ListFunctionsResponseFunctionsContainerEnvironment = shared.ListFunctionsResponseFunctionsContainerEnvironment
Data Transfer Object(DTO) representing a container environment entry
This is an alias to an internal type.
type ListFunctionsResponseFunctionsFunctionType = shared.ListFunctionsResponseFunctionsFunctionType
Used to indicate a STREAMING function. Defaults to DEFAULT.
This is an alias to an internal type.
type ListFunctionsResponseFunctionsHealth = shared.ListFunctionsResponseFunctionsHealth
Data Transfer Object(DTO) representing a function ne
This is an alias to an internal type.
type ListFunctionsResponseFunctionsHealthProtocol = shared.ListFunctionsResponseFunctionsHealthProtocol
HTTP/gPRC protocol type for health endpoint
This is an alias to an internal type.
type ListFunctionsResponseFunctionsModel = shared.ListFunctionsResponseFunctionsModel
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type ListFunctionsResponseFunctionsResource = shared.ListFunctionsResponseFunctionsResource
Data Transfer Object(DTO) representing an artifact
This is an alias to an internal type.
type ListFunctionsResponseFunctionsStatus = shared.ListFunctionsResponseFunctionsStatus
Function status
This is an alias to an internal type.
type NvcfAuthorizationFunctionAuthorizeParams struct {
// Parties authorized to invoke function
AuthorizedParties param.Field[[]NvcfAuthorizationFunctionAuthorizeParamsAuthorizedParty] `json:"authorizedParties,required"`
}
func (r NvcfAuthorizationFunctionAuthorizeParams) MarshalJSON() (data []byte, err error)
type NvcfAuthorizationFunctionAuthorizeParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r NvcfAuthorizationFunctionAuthorizeParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type NvcfAuthorizationFunctionService struct {
Options []option.RequestOption
Versions *NvcfAuthorizationFunctionVersionService
}
NvcfAuthorizationFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfAuthorizationFunctionService method instead.
func NewNvcfAuthorizationFunctionService(opts ...option.RequestOption) (r *NvcfAuthorizationFunctionService)
NewNvcfAuthorizationFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *NvcfAuthorizationFunctionService) Authorize(ctx context.Context, functionID string, body NvcfAuthorizationFunctionAuthorizeParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Authorizes additional NVIDIA Cloud Accounts to invoke any version of the specified function. By default, a function belongs to the NVIDIA Cloud Account that created it, and the credentials used for function invocation must reference the same NVIDIA Cloud Account. Upon invocation of this endpoint, any existing authorized accounts will be overwritten by the newly specified authorized accounts. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *NvcfAuthorizationFunctionService) Delete(ctx context.Context, functionID string, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Deletes all the extra NVIDIA Cloud Accounts that were authorized to invoke the function and all its versions. If a function version has its own set of authorized accounts, those are not deleted. If the specified function is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *NvcfAuthorizationFunctionService) List(ctx context.Context, functionID string, opts ...option.RequestOption) (res *ListAuthorizedPartiesResponse, err error)
Lists NVIDIA Cloud Account IDs that are authorized to invoke any version of the specified function. The response includes an array showing authorized accounts for each version. Individual versions of a function can have their own authorized accounts. So, each object in the array can have different authorized accounts listed. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
type NvcfAuthorizationFunctionVersionAuthorizeParams struct {
// Parties authorized to invoke function
AuthorizedParties param.Field[[]NvcfAuthorizationFunctionVersionAuthorizeParamsAuthorizedParty] `json:"authorizedParties,required"`
}
func (r NvcfAuthorizationFunctionVersionAuthorizeParams) MarshalJSON() (data []byte, err error)
type NvcfAuthorizationFunctionVersionAuthorizeParamsAuthorizedParty struct {
// NVIDIA Cloud Account authorized to invoke the function
NcaID param.Field[string] `json:"ncaId,required"`
// Client Id -- 'sub' claim in the JWT. This field should not be specified anymore.
ClientID param.Field[string] `json:"clientId"`
}
Data Transfer Object(DTO) representing an authorized party.
func (r NvcfAuthorizationFunctionVersionAuthorizeParamsAuthorizedParty) MarshalJSON() (data []byte, err error)
type NvcfAuthorizationFunctionVersionService struct {
Options []option.RequestOption
}
NvcfAuthorizationFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfAuthorizationFunctionVersionService method instead.
func NewNvcfAuthorizationFunctionVersionService(opts ...option.RequestOption) (r *NvcfAuthorizationFunctionVersionService)
NewNvcfAuthorizationFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *NvcfAuthorizationFunctionVersionService) Authorize(ctx context.Context, functionID string, functionVersionID string, body NvcfAuthorizationFunctionVersionAuthorizeParams, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Authorizes additional NVIDIA Cloud Accounts to invoke a specific function version. By default, a function belongs to the NVIDIA Cloud Account that created it, and the credentials used for function invocation must reference the same NVIDIA Cloud Account. Upon invocation of this endpoint, any existing authorized accounts will be overwritten by the newly specified authorized accounts. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *NvcfAuthorizationFunctionVersionService) Delete(ctx context.Context, functionID string, functionVersionID string, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Deletes all the authorized accounts that are directly associated with the specified function version. Authorized parties that are inherited by the function version are not deleted. If the specified function version is public, then Account Admin cannot perform this operation. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
func (r *NvcfAuthorizationFunctionVersionService) Get(ctx context.Context, functionID string, functionVersionID string, opts ...option.RequestOption) (res *shared.AuthorizedPartiesResponse, err error)
Gets NVIDIA Cloud Account IDs that are authorized to invoke specified function version. Response includes authorized accounts that were added specifically to the function version and the inherited authorized accounts that were added at the function level. Access to this functionality mandates the inclusion of a bearer token with the 'authorize_clients' scope in the HTTP Authorization header
type NvcfAuthorizationService struct {
Options []option.RequestOption
Functions *NvcfAuthorizationFunctionService
}
NvcfAuthorizationService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfAuthorizationService method instead.
func NewNvcfAuthorizationService(opts ...option.RequestOption) (r *NvcfAuthorizationService)
NewNvcfAuthorizationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type NvcfFunctionListParams struct {
// Query param 'visibility' indicates the kind of functions to be included in the
// response.
Visibility param.Field[[]NvcfFunctionListParamsVisibility] `query:"visibility"`
}
func (r NvcfFunctionListParams) URLQuery() (v url.Values)
URLQuery serializes NvcfFunctionListParams's query parameters as `url.Values`.
type NvcfFunctionListParamsVisibility string
const ( NvcfFunctionListParamsVisibilityAuthorized NvcfFunctionListParamsVisibility = "authorized" NvcfFunctionListParamsVisibilityPrivate NvcfFunctionListParamsVisibility = "private" NvcfFunctionListParamsVisibilityPublic NvcfFunctionListParamsVisibility = "public" )
func (r NvcfFunctionListParamsVisibility) IsKnown() bool
type NvcfFunctionNewParams struct {
// Entrypoint for invoking the container to process a request
InferenceURL param.Field[string] `json:"inferenceUrl,required" format:"uri"`
// Function name must start with lowercase/uppercase/digit and can only contain
// lowercase, uppercase, digit, hyphen, and underscore characters
Name param.Field[string] `json:"name,required"`
// Invocation request body format
APIBodyFormat param.Field[NvcfFunctionNewParamsAPIBodyFormat] `json:"apiBodyFormat"`
// Args to be passed when launching the container
ContainerArgs param.Field[string] `json:"containerArgs"`
// Environment settings for launching the container
ContainerEnvironment param.Field[[]NvcfFunctionNewParamsContainerEnvironment] `json:"containerEnvironment"`
// Optional custom container image
ContainerImage param.Field[string] `json:"containerImage" format:"uri"`
// Optional function/version description
Description param.Field[string] `json:"description"`
// Optional function type, used to indicate a STREAMING function. Defaults to
// DEFAULT.
FunctionType param.Field[NvcfFunctionNewParamsFunctionType] `json:"functionType"`
// Data Transfer Object(DTO) representing a function ne
Health param.Field[NvcfFunctionNewParamsHealth] `json:"health"`
// Health endpoint for the container or the helmChart
HealthUri param.Field[string] `json:"healthUri" format:"uri"`
// Optional Helm Chart
HelmChart param.Field[string] `json:"helmChart" format:"uri"`
// Helm Chart Service Name is required when helmChart property is specified
HelmChartServiceName param.Field[string] `json:"helmChartServiceName"`
// Optional port number where the inference listener is running. Defaults to 8000
// for Triton.
InferencePort param.Field[int64] `json:"inferencePort"`
// Optional set of models
Models param.Field[[]NvcfFunctionNewParamsModel] `json:"models"`
// Optional set of resources
Resources param.Field[[]NvcfFunctionNewParamsResource] `json:"resources"`
// Optional secrets
Secrets param.Field[[]NvcfFunctionNewParamsSecret] `json:"secrets"`
// Optional set of tags - could be empty. Provided by user
Tags param.Field[[]string] `json:"tags"`
}
func (r NvcfFunctionNewParams) MarshalJSON() (data []byte, err error)
type NvcfFunctionNewParamsAPIBodyFormat string
Invocation request body format
const ( NvcfFunctionNewParamsAPIBodyFormatPredictV2 NvcfFunctionNewParamsAPIBodyFormat = "PREDICT_V2" NvcfFunctionNewParamsAPIBodyFormatCustom NvcfFunctionNewParamsAPIBodyFormat = "CUSTOM" )
func (r NvcfFunctionNewParamsAPIBodyFormat) IsKnown() bool
type NvcfFunctionNewParamsContainerEnvironment struct {
// Container environment key
Key param.Field[string] `json:"key,required"`
// Container environment value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing a container environment entry
func (r NvcfFunctionNewParamsContainerEnvironment) MarshalJSON() (data []byte, err error)
type NvcfFunctionNewParamsFunctionType string
Optional function type, used to indicate a STREAMING function. Defaults to DEFAULT.
const ( NvcfFunctionNewParamsFunctionTypeDefault NvcfFunctionNewParamsFunctionType = "DEFAULT" NvcfFunctionNewParamsFunctionTypeStreaming NvcfFunctionNewParamsFunctionType = "STREAMING" )
func (r NvcfFunctionNewParamsFunctionType) IsKnown() bool
type NvcfFunctionNewParamsHealth struct {
// Expected return status code considered as successful.
ExpectedStatusCode param.Field[int64] `json:"expectedStatusCode,required"`
// Port number where the health listener is running
Port param.Field[int64] `json:"port,required"`
// HTTP/gPRC protocol type for health endpoint
Protocol param.Field[NvcfFunctionNewParamsHealthProtocol] `json:"protocol,required"`
// ISO 8601 duration string in PnDTnHnMn.nS format
Timeout param.Field[string] `json:"timeout,required" format:"PnDTnHnMn.nS"`
// Health endpoint for the container or the helmChart
Uri param.Field[string] `json:"uri,required" format:"uri"`
}
Data Transfer Object(DTO) representing a function ne
func (r NvcfFunctionNewParamsHealth) MarshalJSON() (data []byte, err error)
type NvcfFunctionNewParamsHealthProtocol string
HTTP/gPRC protocol type for health endpoint
const ( NvcfFunctionNewParamsHealthProtocolHTTP NvcfFunctionNewParamsHealthProtocol = "HTTP" NvcfFunctionNewParamsHealthProtocolGRpc NvcfFunctionNewParamsHealthProtocol = "gRPC" )
func (r NvcfFunctionNewParamsHealthProtocol) IsKnown() bool
type NvcfFunctionNewParamsModel struct {
// Artifact name
Name param.Field[string] `json:"name,required"`
// Artifact URI
Uri param.Field[string] `json:"uri,required" format:"uri"`
// Artifact version
Version param.Field[string] `json:"version,required"`
}
Data Transfer Object(DTO) representing an artifact
func (r NvcfFunctionNewParamsModel) MarshalJSON() (data []byte, err error)
type NvcfFunctionNewParamsResource struct {
// Artifact name
Name param.Field[string] `json:"name,required"`
// Artifact URI
Uri param.Field[string] `json:"uri,required" format:"uri"`
// Artifact version
Version param.Field[string] `json:"version,required"`
}
Data Transfer Object(DTO) representing an artifact
func (r NvcfFunctionNewParamsResource) MarshalJSON() (data []byte, err error)
type NvcfFunctionNewParamsSecret struct {
// Secret name
Name param.Field[string] `json:"name,required"`
// Secret value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing secret name/value pair
func (r NvcfFunctionNewParamsSecret) MarshalJSON() (data []byte, err error)
type NvcfFunctionService struct {
Options []option.RequestOption
Versions *NvcfFunctionVersionService
}
NvcfFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfFunctionService method instead.
func NewNvcfFunctionService(opts ...option.RequestOption) (r *NvcfFunctionService)
NewNvcfFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *NvcfFunctionService) List(ctx context.Context, query NvcfFunctionListParams, opts ...option.RequestOption) (res *shared.ListFunctionsResponse, err error)
Lists all the functions associated with the authenticated NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'list_functions' or 'list_functions_details' scopes in the HTTP Authorization header.
func (r *NvcfFunctionService) New(ctx context.Context, body NvcfFunctionNewParams, opts ...option.RequestOption) (res *shared.CreateFunctionResponse, err error)
Creates a new function within the authenticated NVIDIA Cloud Account. Requires a bearer token with 'register_function' scope in the HTTP Authorization header.
type NvcfFunctionVersionNewParams struct {
// Entrypoint for invoking the container to process a request
InferenceURL param.Field[string] `json:"inferenceUrl,required" format:"uri"`
// Function name must start with lowercase/uppercase/digit and can only contain
// lowercase, uppercase, digit, hyphen, and underscore characters
Name param.Field[string] `json:"name,required"`
// Invocation request body format
APIBodyFormat param.Field[NvcfFunctionVersionNewParamsAPIBodyFormat] `json:"apiBodyFormat"`
// Args to be passed when launching the container
ContainerArgs param.Field[string] `json:"containerArgs"`
// Environment settings for launching the container
ContainerEnvironment param.Field[[]NvcfFunctionVersionNewParamsContainerEnvironment] `json:"containerEnvironment"`
// Optional custom container image
ContainerImage param.Field[string] `json:"containerImage" format:"uri"`
// Optional function/version description
Description param.Field[string] `json:"description"`
// Optional function type, used to indicate a STREAMING function. Defaults to
// DEFAULT.
FunctionType param.Field[NvcfFunctionVersionNewParamsFunctionType] `json:"functionType"`
// Data Transfer Object(DTO) representing a function ne
Health param.Field[NvcfFunctionVersionNewParamsHealth] `json:"health"`
// Health endpoint for the container or the helmChart
HealthUri param.Field[string] `json:"healthUri" format:"uri"`
// Optional Helm Chart
HelmChart param.Field[string] `json:"helmChart" format:"uri"`
// Helm Chart Service Name is required when helmChart property is specified
HelmChartServiceName param.Field[string] `json:"helmChartServiceName"`
// Optional port number where the inference listener is running. Defaults to 8000
// for Triton.
InferencePort param.Field[int64] `json:"inferencePort"`
// Optional set of models
Models param.Field[[]NvcfFunctionVersionNewParamsModel] `json:"models"`
// Optional set of resources
Resources param.Field[[]NvcfFunctionVersionNewParamsResource] `json:"resources"`
// Optional secrets
Secrets param.Field[[]NvcfFunctionVersionNewParamsSecret] `json:"secrets"`
// Optional set of tags - could be empty. Provided by user
Tags param.Field[[]string] `json:"tags"`
}
func (r NvcfFunctionVersionNewParams) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionNewParamsAPIBodyFormat string
Invocation request body format
const ( NvcfFunctionVersionNewParamsAPIBodyFormatPredictV2 NvcfFunctionVersionNewParamsAPIBodyFormat = "PREDICT_V2" NvcfFunctionVersionNewParamsAPIBodyFormatCustom NvcfFunctionVersionNewParamsAPIBodyFormat = "CUSTOM" )
func (r NvcfFunctionVersionNewParamsAPIBodyFormat) IsKnown() bool
type NvcfFunctionVersionNewParamsContainerEnvironment struct {
// Container environment key
Key param.Field[string] `json:"key,required"`
// Container environment value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing a container environment entry
func (r NvcfFunctionVersionNewParamsContainerEnvironment) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionNewParamsFunctionType string
Optional function type, used to indicate a STREAMING function. Defaults to DEFAULT.
const ( NvcfFunctionVersionNewParamsFunctionTypeDefault NvcfFunctionVersionNewParamsFunctionType = "DEFAULT" NvcfFunctionVersionNewParamsFunctionTypeStreaming NvcfFunctionVersionNewParamsFunctionType = "STREAMING" )
func (r NvcfFunctionVersionNewParamsFunctionType) IsKnown() bool
type NvcfFunctionVersionNewParamsHealth struct {
// Expected return status code considered as successful.
ExpectedStatusCode param.Field[int64] `json:"expectedStatusCode,required"`
// Port number where the health listener is running
Port param.Field[int64] `json:"port,required"`
// HTTP/gPRC protocol type for health endpoint
Protocol param.Field[NvcfFunctionVersionNewParamsHealthProtocol] `json:"protocol,required"`
// ISO 8601 duration string in PnDTnHnMn.nS format
Timeout param.Field[string] `json:"timeout,required" format:"PnDTnHnMn.nS"`
// Health endpoint for the container or the helmChart
Uri param.Field[string] `json:"uri,required" format:"uri"`
}
Data Transfer Object(DTO) representing a function ne
func (r NvcfFunctionVersionNewParamsHealth) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionNewParamsHealthProtocol string
HTTP/gPRC protocol type for health endpoint
const ( NvcfFunctionVersionNewParamsHealthProtocolHTTP NvcfFunctionVersionNewParamsHealthProtocol = "HTTP" NvcfFunctionVersionNewParamsHealthProtocolGRpc NvcfFunctionVersionNewParamsHealthProtocol = "gRPC" )
func (r NvcfFunctionVersionNewParamsHealthProtocol) IsKnown() bool
type NvcfFunctionVersionNewParamsModel struct {
// Artifact name
Name param.Field[string] `json:"name,required"`
// Artifact URI
Uri param.Field[string] `json:"uri,required" format:"uri"`
// Artifact version
Version param.Field[string] `json:"version,required"`
}
Data Transfer Object(DTO) representing an artifact
func (r NvcfFunctionVersionNewParamsModel) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionNewParamsResource struct {
// Artifact name
Name param.Field[string] `json:"name,required"`
// Artifact URI
Uri param.Field[string] `json:"uri,required" format:"uri"`
// Artifact version
Version param.Field[string] `json:"version,required"`
}
Data Transfer Object(DTO) representing an artifact
func (r NvcfFunctionVersionNewParamsResource) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionNewParamsSecret struct {
// Secret name
Name param.Field[string] `json:"name,required"`
// Secret value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing secret name/value pair
func (r NvcfFunctionVersionNewParamsSecret) MarshalJSON() (data []byte, err error)
type NvcfFunctionVersionService struct {
Options []option.RequestOption
}
NvcfFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfFunctionVersionService method instead.
func NewNvcfFunctionVersionService(opts ...option.RequestOption) (r *NvcfFunctionVersionService)
NewNvcfFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *NvcfFunctionVersionService) List(ctx context.Context, functionID string, opts ...option.RequestOption) (res *shared.ListFunctionsResponse, err error)
Lists details of all the versions of the specified function in the authenticated NVIDIA Cloud Account. Requires either a bearer token or an api-key with 'list_functions' or 'list_functions_details' scopes in the HTTP Authorization header.
func (r *NvcfFunctionVersionService) New(ctx context.Context, functionID string, body NvcfFunctionVersionNewParams, opts ...option.RequestOption) (res *shared.CreateFunctionResponse, err error)
Creates a version of the specified function within the authenticated NVIDIA Cloud Account. Requires a bearer token with 'register_function' scope in the HTTP Authorization header.
type NvcfService struct {
Options []option.RequestOption
Functions *NvcfFunctionService
Authorizations *NvcfAuthorizationService
}
NvcfService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewNvcfService method instead.
func NewNvcfService(opts ...option.RequestOption) (r *NvcfService)
NewNvcfService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type PexecService struct {
Options []option.RequestOption
Status *PexecStatusService
}
PexecService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewPexecService method instead.
func NewPexecService(opts ...option.RequestOption) (r *PexecService)
NewPexecService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type PexecStatusGetResponse struct {
Char string `json:"char"`
Direct bool `json:"direct"`
Double float64 `json:"double"`
Float float64 `json:"float"`
Int int64 `json:"int"`
Long int64 `json:"long"`
ReadOnly bool `json:"readOnly"`
Short int64 `json:"short"`
JSON pexecStatusGetResponseJSON `json:"-"`
}
func (r *PexecStatusGetResponse) UnmarshalJSON(data []byte) (err error)
type PexecStatusService struct {
Options []option.RequestOption
}
PexecStatusService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewPexecStatusService method instead.
func NewPexecStatusService(opts ...option.RequestOption) (r *PexecStatusService)
NewPexecStatusService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *PexecStatusService) Get(ctx context.Context, requestID string, query PexecStatusGetParams, opts ...option.RequestOption) (res *PexecStatusGetResponse, err error)
Retrieves the status of an in-progress or pending request using its unique invocation request ID. If the result is available, it will be included in the response, marking the request as fulfilled. Conversely, if the result is not yet available, the request is deemed pending. Access to this endpoint mandates inclusion of either a bearer token or an api-key with 'invoke_function' scope in the HTTP Authorization header. In-progress responses are returned in order. If no in-progress response is received during polling you will receive the most recent in-progress response. Only the first 256 unread in-progress messages are kept.
type QueueFunctionService struct {
Options []option.RequestOption
Versions *QueueFunctionVersionService
}
QueueFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewQueueFunctionService method instead.
func NewQueueFunctionService(opts ...option.RequestOption) (r *QueueFunctionService)
NewQueueFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *QueueFunctionService) List(ctx context.Context, functionID string, opts ...option.RequestOption) (res *shared.GetQueuesResponse, err error)
Provides details of all the queues associated with the specified function. If a function has multiple versions and they are all deployed, then the response includes details of all the queues. If the specified function is public, then Account Admin cannot perform this operation. Requires a bearer token or an api-key with 'queue_details' scope in the HTTP Authorization header.
type QueueFunctionVersionService struct {
Options []option.RequestOption
}
QueueFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewQueueFunctionVersionService method instead.
func NewQueueFunctionVersionService(opts ...option.RequestOption) (r *QueueFunctionVersionService)
NewQueueFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *QueueFunctionVersionService) List(ctx context.Context, functionID string, versionID string, opts ...option.RequestOption) (res *shared.GetQueuesResponse, err error)
Provides details of all the queues associated with the specified function. If a function has multiple versions and they are all deployed, then the response includes details of all the queues. If the specified function is public, then Account Admin cannot perform this operation. Requires a bearer token or an api-key with 'queue_details' scope in the HTTP Authorization header.
type QueuePositionService struct {
Options []option.RequestOption
}
QueuePositionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewQueuePositionService method instead.
func NewQueuePositionService(opts ...option.RequestOption) (r *QueuePositionService)
NewQueuePositionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *QueuePositionService) Get(ctx context.Context, requestID string, opts ...option.RequestOption) (res *GetPositionInQueueResponse, err error)
Using the specified function invocation request id, returns the estimated position of the corresponding message up to 1000 in the queue. Requires a bearer token or an api-key with 'queue_details' scope in the HTTP Authorization header.
type QueueService struct {
Options []option.RequestOption
Functions *QueueFunctionService
Position *QueuePositionService
}
QueueService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewQueueService method instead.
func NewQueueService(opts ...option.RequestOption) (r *QueueService)
NewQueueService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type UserSecretManagementFunctionService struct {
Options []option.RequestOption
Versions *UserSecretManagementFunctionVersionService
}
UserSecretManagementFunctionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSecretManagementFunctionService method instead.
func NewUserSecretManagementFunctionService(opts ...option.RequestOption) (r *UserSecretManagementFunctionService)
NewUserSecretManagementFunctionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type UserSecretManagementFunctionVersionService struct {
Options []option.RequestOption
}
UserSecretManagementFunctionVersionService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSecretManagementFunctionVersionService method instead.
func NewUserSecretManagementFunctionVersionService(opts ...option.RequestOption) (r *UserSecretManagementFunctionVersionService)
NewUserSecretManagementFunctionVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (r *UserSecretManagementFunctionVersionService) Update(ctx context.Context, functionID string, versionID string, body UserSecretManagementFunctionVersionUpdateParams, opts ...option.RequestOption) (err error)
Updates secrets for the specified function version. This endpoint requires either a bearer token or an api-key with 'update_secrets' scope in the HTTP Authorization header.
type UserSecretManagementFunctionVersionUpdateParams struct {
// Secrets
Secrets param.Field[[]UserSecretManagementFunctionVersionUpdateParamsSecret] `json:"secrets,required"`
}
func (r UserSecretManagementFunctionVersionUpdateParams) MarshalJSON() (data []byte, err error)
type UserSecretManagementFunctionVersionUpdateParamsSecret struct {
// Secret name
Name param.Field[string] `json:"name,required"`
// Secret value
Value param.Field[string] `json:"value,required"`
}
Data Transfer Object(DTO) representing secret name/value pair
func (r UserSecretManagementFunctionVersionUpdateParamsSecret) MarshalJSON() (data []byte, err error)
type UserSecretManagementService struct {
Options []option.RequestOption
Functions *UserSecretManagementFunctionService
}
UserSecretManagementService contains methods and other services that help with interacting with the nvidia-cloud-functions API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserSecretManagementService method instead.
func NewUserSecretManagementService(opts ...option.RequestOption) (r *UserSecretManagementService)
NewUserSecretManagementService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
| Back | FazBrowse Home | New Git URL |