Documentation ¶
Overview ¶
Package signing provides functionality to manage GPU driver signatures for COS.
Index ¶
- func DownloadDriverSignatures(ctx context.Context, downloader cos.ExtensionsDownloader, driverVersion string) error
- func DownloadDriverSignaturesFromURL(signatureURL string) error
- func DownloadDriverSignaturesV2(ctx context.Context, downloader cos.ExtensionsDownloader, driverVersion string) error
- func GetModuleSignature(moduleName string) string
- func GetPrivateKey() string
- func GetPublicKeyDer() string
- func GetPublicKeyPem() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadDriverSignatures ¶
func DownloadDriverSignatures(ctx context.Context, downloader cos.ExtensionsDownloader, driverVersion string) error
DownloadDriverSignatures downloads GPU driver signatures.
func DownloadDriverSignaturesFromURL ¶
DownloadDriverSignaturesFromURL downloads GPU driver signatures from a provided URL.
func DownloadDriverSignaturesV2 ¶
func DownloadDriverSignaturesV2(ctx context.Context, downloader cos.ExtensionsDownloader, driverVersion string) error
DownloadDriverSignaturesV2 downloads GPU driver signatures from COS build artifacts.
func GetModuleSignature ¶
GetModuleSignature returns siganture path given kernel module name.
func GetPrivateKey ¶
func GetPrivateKey() string
GetPrivateKey returns the filepath of the private key of a given GPU driver. This is a dummy key as the driver has been signed in advance.
func GetPublicKeyDer ¶
func GetPublicKeyDer() string
GetPublicKeyDer returns the filepath of the public key in der format.
func GetPublicKeyPem ¶
func GetPublicKeyPem() string
GetPublicKeyPem returns the filepath of the public key in pem format.
Types ¶
This section is empty.