Documentation ¶
Index ¶
- Constants
- Variables
- type Builder
- func (b Builder) Bound() (Context, context.Context)
- func (b Builder) New(m ...datacontext.BuilderMode) Context
- func (b Builder) WithContext(ctx context.Context) Builder
- func (b Builder) WithErrorOutput(w io.Writer) Builder
- func (b Builder) WithFileSystem(fs vfs.FileSystem) Builder
- func (b Builder) WithInput(r io.Reader) Builder
- func (b Builder) WithOCM(ctx ocm.Context) Builder
- func (b Builder) WithOutput(w io.Writer) Builder
- func (b Builder) WithSharedAttributes(ctx datacontext.AttributesContext) Builder
- type Context
- type ContextProvider
- type FileSystem
- type OCI
- type OCM
Constants ¶
View Source
const CONTEXT_TYPE = "ocm.cmd" + datacontext.OCM_CONTEXT_SUFFIX
Variables ¶
View Source
var DefaultContext = Builder{}.New(datacontext.MODE_SHARED)
DefaultContext is the default context initialized by init functions.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (Builder) New ¶
func (b Builder) New(m ...datacontext.BuilderMode) Context
func (Builder) WithFileSystem ¶
func (b Builder) WithFileSystem(fs vfs.FileSystem) Builder
func (Builder) WithSharedAttributes ¶
func (b Builder) WithSharedAttributes(ctx datacontext.AttributesContext) Builder
type Context ¶
type Context interface { datacontext.Context ContextProvider datacontext.ContextProvider config.ContextProvider credentials.ContextProvider oci.ContextProvider ocm.ContextProvider FileSystem() *FileSystem OCI() OCI OCM() OCM ApplyOption(options accessio.Options) error out.Context WithStdIO(r io.Reader, o io.Writer, e io.Writer) Context }
func ForContext ¶
ForContext returns the Context to use for context.Context. This is either an explicit context or the default context. The returned context incorporates the given context.
type ContextProvider ¶ added in v0.9.0
type ContextProvider interface {
CLIContext() Context
}
type FileSystem ¶
type FileSystem struct {
vfs.FileSystem
}
func (*FileSystem) ApplyOption ¶
func (f *FileSystem) ApplyOption(options accessio.Options) error
Click to show internal directories.
Click to hide internal directories.