Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode (base 64) and unzip the scenario content into the scenario directory along the others. If files already exist for this challenge, erase it first. Returns the directory to look for the Pulumi stack or an error if anything went wrong. Error is of type *errors.ErrInternal if related to file-system errors, else a meaningfull error to return to the API call.
Types ¶
type Decompressor ¶ added in v0.1.4
type Decompressor struct {
*Options
}
Decompressor handle the load of
func NewDecompressor ¶ added in v0.1.4
func NewDecompressor(opts *Options) *Decompressor
NewDecompressor constructs a fresh Decompressor.
type ErrPathTainted ¶ added in v0.1.4
type ErrPathTainted struct {
Path string
}
ErrPathTainted is returned when a potential zip slip is detected through an unzip.
func (ErrPathTainted) Error ¶ added in v0.1.4
func (err ErrPathTainted) Error() string
type ErrTooLargeContent ¶ added in v0.1.4
type ErrTooLargeContent struct {
MaxSize int64
}
ErrTooLargeContent is returned when a too large zip is processed (e.g. a zip bomb).
func (ErrTooLargeContent) Error ¶ added in v0.1.4
func (err ErrTooLargeContent) Error() string
Click to show internal directories.
Click to hide internal directories.