utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFolder

func CreateFolder(path string) error

func FileExists

func FileExists(path string) bool

func FolderExists

func FolderExists(path string) bool

func GetSchemaConfig

func GetSchemaConfig(schemaConfigPath string) (*invv1alpha1.Schema, error)

func NewCtxReader

func NewCtxReader(ctx context.Context, r io.ReadCloser) *ctxReader

func SchemaLoadSdcpbSchemaFile

func SchemaLoadSdcpbSchemaFile(path string) (*sdcpb.Schema, error)

Types

type FileWrapper

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

func NewFileWrapper

func NewFileWrapper(ref string) *FileWrapper

func (*FileWrapper) Bytes

func (f *FileWrapper) Bytes() ([]byte, error)

func (*FileWrapper) ReadCloser

func (f *FileWrapper) ReadCloser(ctx context.Context) (io.ReadCloser, error)

func (*FileWrapper) SetInsecure

func (f *FileWrapper) SetInsecure(b bool)

Jump to

Keyboard shortcuts

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