ContainerFileSystemCallbackContext.CreateCertificateFile
Method
type ContainerFileSystemCallbackContext interface { // ... omitted for brevity CreateCertificateFile( name string, options ...*CreateCertificateFileOptions, ) ContainerFileSystemItem}Signature
method
CreateCertificateFile Creates a PEM container certificate file entry with the OpenSSL subject-hash symlink.
CreateCertificateFile( name string, options ...*CreateCertificateFileOptions,) ContainerFileSystemItemParameters
namestringThe simple file name (no path separators).options...*CreateCertificateFileOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*CreateCertificateFileOptions argument.
Contents*stringThe inline PEM-encoded contents of the certificate. Mutually exclusive with sourcePath .SourcePath *stringAn absolute path to a PEM file on the host to copy. Mutually exclusive with contents.Owner*float64The owner UID, or null to inherit.Group*float64The group GID, or null to inherit.Mode*float64The Unix file mode as an integer (for example 0o644), or null to inherit.ContinueOnError *boolWhether to ignore errors creating this file.Returns
ContainerFileSystemItem The created certificate file entry.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: