@@ -11,7 +11,7 @@ const (
1111)
1212
1313// Config is the envconfig (http://github.com/kelseyhightower/envconfig) compatible struct for the
14- // builder's git-receive hook
14+ // builder's git-receive hook.
1515type Config struct {
1616 // k8s service discovery env vars
1717 ControllerHost string `envconfig:"DEIS_CONTROLLER_SERVICE_HOST" required:"true"`
@@ -38,7 +38,7 @@ type Config struct {
3838}
3939
4040// App returns the application name represented by c. The app name is the same as c.Repository
41- // with the last '.' and beyond stripped off
41+ // with the last '.' and beyond stripped off.
4242func (c Config ) App () string {
4343 li := strings .LastIndex (c .Repository , "." )
4444 if li == - 1 {
@@ -48,31 +48,31 @@ func (c Config) App() string {
4848}
4949
5050// BuilderPodTickDuration returns the size of the interval used to check for
51- // the end of the execution of a Pod building an application
51+ // the end of the execution of a Pod building an application.
5252func (c Config ) BuilderPodTickDuration () time.Duration {
5353 return time .Duration (time .Duration (c .BuilderPodTickDurationMSec ) * time .Millisecond )
5454}
5555
5656// BuilderPodWaitDuration returns the maximum time to wait for the end
57- // of the execution of a Pod building an application
57+ // of the execution of a Pod building an application.
5858func (c Config ) BuilderPodWaitDuration () time.Duration {
5959 return time .Duration (time .Duration (c .BuilderPodWaitDurationMSec ) * time .Millisecond )
6060}
6161
6262// ObjectStorageTickDuration returns the size of the interval used to check for
63- // the end of an operation that involves the object storage
63+ // the end of an operation that involves the object storage.
6464func (c Config ) ObjectStorageTickDuration () time.Duration {
6565 return time .Duration (time .Duration (c .ObjectStorageTickDurationMSec ) * time .Millisecond )
6666}
6767
6868// ObjectStorageWaitDuration returns the maximum time to wait for the end of an
69- // operation that involves the object storage
69+ // operation that involves the object storage.
7070func (c Config ) ObjectStorageWaitDuration () time.Duration {
7171 return time .Duration (time .Duration (c .ObjectStorageWaitDurationMSec ) * time .Millisecond )
7272}
7373
7474// CheckDurations checks if ticks for builder and object storage are not bigger
75- // than the maximum duration. In case of this it will set the tick to the default
75+ // than the maximum duration. In case of this it will set the tick to the default.
7676func (c * Config ) CheckDurations () {
7777 if c .BuilderPodTickDurationMSec >= c .BuilderPodWaitDurationMSec {
7878 c .BuilderPodTickDurationMSec = builderPodTick
0 commit comments