file

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bash = iota
	Invalid
)
View Source
const (
	Perm = 0755
)

Variables

View Source
var (
	Shebang = []string{
		"#!/bin/bash",
		"#!/usr/bin/env bash",
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultConfig

func DefaultConfig() *Config

type File

type File interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Unzip(context.Context, []byte) ([]byte, error)
	Write(context.Context, string, []byte) error
	Remove(context.Context, string) error
	Type(context.Context, string) int
}

func New

func New(_ context.Context, cfg *Config) File

Jump to

Keyboard shortcuts

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