Skip to content

Commit

Permalink
provider: remove elastictranscoder
Browse files Browse the repository at this point in the history
Related to #239.
  • Loading branch information
fsouza committed Aug 8, 2019
1 parent 59419d1 commit 4f3e35e
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 1,840 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The Video Transcoding API provides an agnostic API to transcode media assets
across different cloud services. Currently, it supports the following
providers:

- [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/)
- [Bitmovin](http://bitmovin.com)
- [Elemental Conductor](http://www.elementaltechnologies.com/products/elemental-conductor)
- [Encoding.com](http://encoding.com)
Expand All @@ -25,19 +24,6 @@ environment variables:

### Providers configuration

#### For [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/)

```
export AWS_ACCESS_KEY_ID=your.access.key.id
export AWS_SECRET_ACCESS_KEY=your.secret.access.key
export AWS_REGION="us-east-1"
export ELASTICTRANSCODER_PIPELINE_ID="yourpipeline-id"
```

Please notice that for Elastic Transcoder you don't specify the destination
bucket, as it is [defined in the Elastic Transcoder
Pipeline](https://docs.aws.amazon.com/elastictranscoder/latest/developerguide/pipeline-settings.html#pipeline-settings-configure-transcoded-bucket).

#### For [Bitmovin](http://bitmovin.com)

```
Expand Down
10 changes: 0 additions & 10 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type Config struct {
DefaultSegmentDuration uint `envconfig:"DEFAULT_SEGMENT_DURATION" default:"5"`
Redis *storage.Config
EncodingCom *EncodingCom
ElasticTranscoder *ElasticTranscoder
ElementalConductor *ElementalConductor
Hybrik *Hybrik
Zencoder *Zencoder
Expand All @@ -41,15 +40,6 @@ type Zencoder struct {
Destination string `envconfig:"ZENCODER_DESTINATION"`
}

// ElasticTranscoder represents the set of configurations for the Elastic
// Transcoder provider.
type ElasticTranscoder struct {
AccessKeyID string `envconfig:"AWS_ACCESS_KEY_ID"`
SecretAccessKey string `envconfig:"AWS_SECRET_ACCESS_KEY"`
Region string `envconfig:"AWS_REGION"`
PipelineID string `envconfig:"ELASTICTRANSCODER_PIPELINE_ID"`
}

// ElementalConductor represents the set of configurations for the Elemental
// Conductor provider.
type ElementalConductor struct {
Expand Down
14 changes: 0 additions & 14 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestLoadConfigFromEnv(t *testing.T) {
"AWS_ACCESS_KEY_ID": "AKIANOTREALLY",
"AWS_SECRET_ACCESS_KEY": "secret-key",
"AWS_REGION": "us-east-1",
"ELASTICTRANSCODER_PIPELINE_ID": "mypipeline",
"ELEMENTALCONDUCTOR_HOST": "elemental-server",
"ELEMENTALCONDUCTOR_USER_LOGIN": "myuser",
"ELEMENTALCONDUCTOR_API_KEY": "secret-key",
Expand Down Expand Up @@ -83,12 +82,6 @@ func TestLoadConfigFromEnv(t *testing.T) {
PresetPath: "transcoding-api-presets",
},
Zencoder: &Zencoder{},
ElasticTranscoder: &ElasticTranscoder{
AccessKeyID: "AKIANOTREALLY",
SecretAccessKey: "secret-key",
Region: "us-east-1",
PipelineID: "mypipeline",
},
ElementalConductor: &ElementalConductor{
Host: "elemental-server",
UserLogin: "myuser",
Expand Down Expand Up @@ -151,7 +144,6 @@ func TestLoadConfigFromEnvWithDefaults(t *testing.T) {
"AWS_ACCESS_KEY_ID": "AKIANOTREALLY",
"AWS_SECRET_ACCESS_KEY": "secret-key",
"AWS_REGION": "us-east-1",
"ELASTICTRANSCODER_PIPELINE_ID": "mypipeline",
"ELEMENTALCONDUCTOR_HOST": "elemental-server",
"ELEMENTALCONDUCTOR_USER_LOGIN": "myuser",
"ELEMENTALCONDUCTOR_API_KEY": "secret-key",
Expand Down Expand Up @@ -187,12 +179,6 @@ func TestLoadConfigFromEnvWithDefaults(t *testing.T) {
Destination: "https://safe-stuff",
StatusEndpoint: "http://status.encoding.com",
},
ElasticTranscoder: &ElasticTranscoder{
AccessKeyID: "AKIANOTREALLY",
SecretAccessKey: "secret-key",
Region: "us-east-1",
PipelineID: "mypipeline",
},
ElementalConductor: &ElementalConductor{
Host: "elemental-server",
UserLogin: "myuser",
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/video-dev/video-transcoding-api/v2
require (
github.com/NYTimes/gizmo v1.2.14
github.com/NYTimes/gziphandler v1.1.1
github.com/aws/aws-sdk-go v1.22.1
github.com/aws/aws-sdk-go-v2 v0.10.0
github.com/bitmovin/bitmovin-go v1.29.0
github.com/fsouza/ctxlogger v1.5.8
Expand Down
48 changes: 2 additions & 46 deletions go.sum

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/google/gops/agent"
"github.com/video-dev/video-transcoding-api/v2/config"
_ "github.com/video-dev/video-transcoding-api/v2/provider/bitmovin"
_ "github.com/video-dev/video-transcoding-api/v2/provider/elastictranscoder"
_ "github.com/video-dev/video-transcoding-api/v2/provider/elementalconductor"
_ "github.com/video-dev/video-transcoding-api/v2/provider/encodingcom"
_ "github.com/video-dev/video-transcoding-api/v2/provider/hybrik"
Expand Down
Loading

0 comments on commit 4f3e35e

Please sign in to comment.