Skip to content

Commit

Permalink
docs: add error handling after container purging (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryoya committed Oct 18, 2020
1 parent 59483fe commit 36806f7
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 13 deletions.
6 changes: 4 additions & 2 deletions examples/BuildDockerfile.md
Expand Up @@ -30,5 +30,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
```
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
4 changes: 3 additions & 1 deletion examples/Cassandra.md
Expand Up @@ -43,5 +43,7 @@ if err := pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
4 changes: 3 additions & 1 deletion examples/CockroachDB.md
Expand Up @@ -23,5 +23,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
4 changes: 3 additions & 1 deletion examples/Minio.md
Expand Up @@ -38,5 +38,7 @@ if err := pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
4 changes: 3 additions & 1 deletion examples/MongoDB.md
Expand Up @@ -26,5 +26,7 @@ if err := pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
6 changes: 4 additions & 2 deletions examples/MySQL.md
Expand Up @@ -24,5 +24,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
```
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
4 changes: 3 additions & 1 deletion examples/PostgreSQL.md
Expand Up @@ -23,5 +23,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
6 changes: 4 additions & 2 deletions examples/Redis.md
Expand Up @@ -22,5 +22,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
```
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```
6 changes: 4 additions & 2 deletions examples/RethinkDB.md
Expand Up @@ -33,5 +33,7 @@ if err = pool.Retry(func() error {
}

// When you're done, kill and remove the container
err = pool.Purge(resource)
```
if err = pool.Purge(resource); err != nil {
log.Fatalf("Could not purge resource: %s", err)
}
```

0 comments on commit 36806f7

Please sign in to comment.