luizalabs / teresa

Open source tool to deploy apps to Kubernetes clusters
Other
556 stars 79 forks source link

Support Azure Storage #469

Open yagonobre opened 6 years ago

Guilhermeslucas commented 4 years ago

Hello everyone, how are you? I'd like to take a look at it it. I just have some questions:

type Config struct {
    Type                storageType `envconfig:"type" default:"s3"`
    AwsKey              string      `envconfig:"aws_key"`
    AwsSecret           string      `envconfig:"aws_secret"`
    AwsRegion           string      `envconfig:"aws_region"`
    AwsBucket           string      `envconfig:"aws_bucket"`
    AwsEndpoint         string      `envconfig:"aws_endpoint" default:""`
    AwsDisableSSL       bool        `envconfig:"aws_disable_ssl" default:"false"`
    AwsS3ForcePathStyle bool        `envconfig:"aws_s3_force_path_style" default:"false"`
}
type Storage interface {
    K8sSecretName() string
    AccessData() map[string][]byte
    UploadFile(path string, file io.ReadSeeker) error
    Type() string
    PodEnvVars() map[string]string
    List(path string) ([]*Object, error)
    Delete(path string) error
}

Thanks a lot!