Documentation ¶
Index ¶
- Constants
- func CompressToString(content []byte) (string, error)
- func IsBinary(contentType string) bool
- func IsLocalAndFileExists(uri string) (bool, error)
- func LoadRawContent(ctx context.Context, source string) ([]byte, string, error)
- func LoadTextContent(ctx context.Context, source string, base64Compression bool) (string, string, bool, error)
- type Source
Constants ¶
View Source
const ( // Megabyte represent the related unit. Megabyte = 1 << 20 // Kilobyte represent the related unit. Kilobyte = 1 << 10 )
Variables ¶
This section is empty.
Functions ¶
func CompressToString ¶
func IsLocalAndFileExists ¶
func LoadRawContent ¶
Types ¶
type Source ¶
type Source struct { Origin string Location string Name string Content string Compress bool Local bool }
Source represents the source file of an Integration.
Click to show internal directories.
Click to hide internal directories.