 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( EngineCustomCACertsDir = distconsts.EngineCustomCACertsDir // OrbStack automatically installs this custom CA cert, but we don't want to automatically // install it in every Dagger container, so we ignore it if found. // https://docs.orbstack.dev/features/https#between-containers OrbstackCACertName = "orbstack-root.crt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupErr ¶
type CleanupErr struct {
	// contains filtered or unexported fields
}
    Want identifiable separate type for cleanup errors since if those are hit specifically we need to fail to the whole exec (whereas other errors but successful cleanup can be non-fatal)
func (CleanupErr) Error ¶
func (c CleanupErr) Error() string
func (CleanupErr) Unwrap ¶
func (c CleanupErr) Unwrap() error
type Installer ¶
type Installer interface {
	// Install installs the custom CA certs into the container. In case of an error part way through,
	// it should attempt to cleanup after itself and return the error. If cleanup itself errors, it should
	// be returned wrapped in a CleanupErr type.
	Install(ctx context.Context) error
	// Uninstall removes the custom CA certs from the container.
	Uninstall(context.Context) error
	// contains filtered or unexported methods
}
    Installer is an implementation of installing+uninstalling custom CA certs for a container, usually based on the distro.
func NewInstaller ¶
func NewInstaller( ctx context.Context, spec *specs.Spec, executeContainer containerfs.ExecuteContainerFunc, ) (Installer, error)
 Click to show internal directories. 
   Click to hide internal directories.