ContainerFileSystemCallbackContext
Represents the context for a Container callback.
type ContainerFileSystemCallbackContext interface{}Properties
ModelResourcegetModel() ResourceServicesServiceProvider getIServiceProvider that can be used to resolve services in the callback.Services() ServiceProviderMethods
CreateCertificateFile 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().
CreateDirectory CreateDirectory( name string, entries []ContainerFileSystemItem, options ...*CreateDirectoryOptions,) ContainerFileSystemItemParameters
namestringThe simple directory name (no path separators).entries[]ContainerFileSystemItem The child entries (files and/or directories) created via this context.options...*CreateDirectoryOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*CreateDirectoryOptions argument.
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 0o755), or null to inherit.Returns
ContainerFileSystemItem The created directory entry.
Returns a handle; failures surface later via Err().
CreateFile CreateFile( name string, options ...*CreateFileOptions,) ContainerFileSystemItemParameters
namestringThe simple file name (no path separators).options...*CreateFileOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*CreateFileOptions argument.
Contents*stringThe inline UTF-8 contents of the file. Mutually exclusive with sourcePath .SourcePath *stringAn absolute path to a 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 file entry.
Returns a handle; failures surface later via Err().