Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorAuth() error
- func ErrorInvalidS3Path(provided string) error
- func ErrorInvalidS3aPath(provided string) error
- func IsNoSuchKeyErr(err error) bool
- func IsNotFoundErr(err error) bool
- func IsS3FileExternal(bucket string, key string, region string) (bool, error)
- func IsS3PrefixExternal(bucket string, prefix string, region string) (bool, error)
- func IsS3aPrefixExternal(s3aPath string, region string) (bool, error)
- func IsValidS3Path(s3Path string) bool
- func IsValidS3aPath(s3aPath string) bool
- func SplitS3Path(s3Path string) (string, string, error)
- func SplitS3aPath(s3aPath string) (string, string, error)
- type Client
- func (c *Client) AuthUser(accessKeyID string, secretAccessKey string) (bool, error)
- func (c *Client) DeleteFromS3ByPrefix(prefix string, continueIfFailure bool) error
- func (c *Client) GetLogs(prefix string, logGroup string) (string, error)
- func (c *Client) IsS3Dir(dirPath string) (bool, error)
- func (c *Client) IsS3File(key string) (bool, error)
- func (c *Client) IsS3Prefix(prefix string) (bool, error)
- func (c *Client) ReadBytesFromS3(key string) ([]byte, error)
- func (c *Client) ReadJSONFromS3(objPtr interface{}, key string) error
- func (c *Client) ReadMsgpackFromS3(objPtr interface{}, key string) error
- func (c *Client) ReadStringFromS3(key string) (string, error)
- func (c *Client) S3Path(key string) string
- func (c *Client) UploadBufferToS3(buffer *bytes.Buffer, key string) error
- func (c *Client) UploadBytesToS3(data []byte, key string) error
- func (c *Client) UploadBytesesToS3(data []byte, keys ...string) error
- func (c *Client) UploadFileToS3(filePath string, key string) error
- func (c *Client) UploadJSONToS3(obj interface{}, key string) error
- func (c *Client) UploadMsgpackToS3(obj interface{}, key string) error
- func (c *Client) UploadStringToS3(str string, key string) error
- type Error
- type ErrorKind
- type FluentdLog
Constants ¶
View Source
const DefaultS3Region string = endpoints.UsWest2RegionID
Variables ¶
View Source
var S3Regions strset.Set
Functions ¶
func ErrorInvalidS3Path ¶
func ErrorInvalidS3aPath ¶
func IsNoSuchKeyErr ¶
func IsNotFoundErr ¶
func IsS3FileExternal ¶
func IsS3PrefixExternal ¶
func IsValidS3Path ¶
func IsValidS3aPath ¶
Types ¶
type Client ¶
type Client struct { Region string Bucket string HashedAccountID string // contains filtered or unexported fields }
func (*Client) DeleteFromS3ByPrefix ¶
func (*Client) ReadJSONFromS3 ¶
func (*Client) ReadMsgpackFromS3 ¶
func (*Client) UploadBufferToS3 ¶
func (*Client) UploadBytesesToS3 ¶
func (*Client) UploadJSONToS3 ¶
func (*Client) UploadMsgpackToS3 ¶
type ErrorKind ¶
type ErrorKind int
func (ErrorKind) MarshalBinary ¶
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶
UnmarshalText satisfies TextUnmarshaler
type FluentdLog ¶
type FluentdLog struct { Log string `json:"log"` Stream string `json:"stream"` Docker struct { ContainerID string `json:"container_id"` } `json:"docker"` Kubernetes struct { ContainerName string `json:"container_name"` NamespaceName string `json:"namespace_name"` PodName string `json:"pod_name"` OrphanedName string `json:"orphaned_namespace"` NamespaceID string `json:"namespace_id"` } `json:"kubernetes"` }
Click to show internal directories.
Click to hide internal directories.