layer

package
v0.0.0-...-186f89b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const AdministratratorOwnerAndGroupSID = "AQAAgBQAAAAkAAAAAAAAAAAAAAABAgAAAAAABSAAAAAgAgAAAQIAAAAAAAUgAAAAIAIAAA=="

owner: BUILTIN/Administrators group: BUILTIN/Administrators ($sddlValue="O:BAG:BA")

View Source
const UserOwnerAndGroupSID = "AQAAgBQAAAAkAAAAAAAAAAAAAAABAgAAAAAABSAAAAAhAgAAAQIAAAAAAAUgAAAAIQIAAA=="

owner: BUILTIN/Users group: BUILTIN/Users ($sddlValue="O:BUG:BU")

Variables

This section is empty.

Functions

func BaseLayerBCD

func BaseLayerBCD() ([]byte, error)

func WindowsBaseLayer

func WindowsBaseLayer() (io.Reader, error)

Windows base layers must follow this pattern:

\-> UtilityVM/Files/EFI/Microsoft/Boot/BCD   (file must exist and a valid BCD format - from bcdhive_gen)
\-> Files/Windows/System32/config/DEFAULT   (file and must exist but can be empty)
\-> Files/Windows/System32/config/SAM       (file must exist but can be empty)
\-> Files/Windows/System32/config/SECURITY  (file must exist but can be empty)
\-> Files/Windows/System32/config/SOFTWARE  (file must exist but can be empty)
\-> Files/Windows/System32/config/SYSTEM    (file must exist but can be empty)

Refs: https://github.com/microsoft/hcsshim/blob/master/internal/wclayer/legacy.go https://github.com/moby/moby/blob/master/daemon/graphdriver/windows/windows.go#L48

Types

type WindowsWriter

type WindowsWriter struct {
	// contains filtered or unexported fields
}

func NewWindowsWriter

func NewWindowsWriter(fileWriter io.Writer) *WindowsWriter

func (*WindowsWriter) Close

func (w *WindowsWriter) Close() (err error)

func (*WindowsWriter) Flush

func (w *WindowsWriter) Flush() error

func (*WindowsWriter) Write

func (w *WindowsWriter) Write(content []byte) (int, error)

func (*WindowsWriter) WriteHeader

func (w *WindowsWriter) WriteHeader(header *tar.Header) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL