credentials

package
v0.0.0-...-2393a11 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package credentials holds the necessary structs and functions for adding and removing Container Credential Guard instances (shortened to CCG normally) for V2 HCS schema containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCGResource

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

CCGResource stores the id used when creating a ccg instance. Used when closing a container to be able to release the instance.

func CreateCredentialGuard

func CreateCredentialGuard(ctx context.Context, id, credSpec string, hypervisorIsolated bool) (*hcsschema.ContainerCredentialGuardInstance, *CCGResource, error)

CreateCredentialGuard creates a container credential guard instance and returns the state object to be placed in a v2 container doc.

func (*CCGResource) Release

func (ccgResource *CCGResource) Release(ctx context.Context) error

Release calls into hcs to remove the ccg instance for the container matching CCGResource.id. These do not get cleaned up automatically they MUST be explicitly removed with a call to ModifyServiceSettings. The instances will persist unless vmcompute.exe exits or they are removed manually as done here.

Jump to

Keyboard shortcuts

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