Skip to content

Commit

Permalink
chore: add docs reminder comments for driver opts
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Nov 16, 2023
1 parent 7a724ac commit 1326634
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion driver/docker-container/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const (

type Driver struct {
driver.InitConfig
factory driver.Factory
factory driver.Factory

// if you add fields, remember to update docs:
// https://github.com/docker/docs/blob/main/content/build/drivers/docker-container.md
netMode string
image string
memory opts.MemBytes
Expand Down
2 changes: 2 additions & 0 deletions driver/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type Driver struct {
factory driver.Factory
driver.InitConfig

// if you add fields, remember to update docs:
// https://github.com/docker/docs/blob/main/content/build/drivers/docker.md
features features
hostGateway hostGateway
}
Expand Down
5 changes: 4 additions & 1 deletion driver/kubernetes/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ const (

type Driver struct {
driver.InitConfig
factory driver.Factory
factory driver.Factory

// if you add fields, remember to update docs:
// https://github.com/docker/docs/blob/main/content/build/drivers/kubernetes.md
minReplicas int
deployment *appsv1.Deployment
configMaps []*corev1.ConfigMap
Expand Down
3 changes: 3 additions & 0 deletions driver/remote/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import (
type Driver struct {
factory driver.Factory
driver.InitConfig

// if you add fields, remember to update docs:
// https://github.com/docker/docs/blob/main/content/build/drivers/remote.md
*tlsOpts
}

Expand Down

0 comments on commit 1326634

Please sign in to comment.