Commit 0f1ad8ca authored by Geoff Simmons's avatar Geoff Simmons

gofmt/golint updates (whitespace only)

parent 6d344815
...@@ -116,11 +116,11 @@ type Client struct { ...@@ -116,11 +116,11 @@ type Client struct {
// NewClient creates an API client. // NewClient creates an API client.
// //
// log: logger initialized at startup // log: logger initialized at startup
// kubeClient: k8s client initialized at startup // kubeClient: k8s client initialized at startup
// vc: Varnish controller // vc: Varnish controller
// infFactory: SharedInformerFactory to create informers & listers for // infFactory: SharedInformerFactory to create informers & listers for
// the k8s standard client APIs // the k8s standard client APIs
func NewClient( func NewClient(
log *logrus.Logger, log *logrus.Logger,
kubeClient kubernetes.Interface, kubeClient kubernetes.Interface,
......
...@@ -236,10 +236,10 @@ type NamespaceQueues struct { ...@@ -236,10 +236,10 @@ type NamespaceQueues struct {
// NewNamespaceQueues creates a NamespaceQueues object. // NewNamespaceQueues creates a NamespaceQueues object.
// //
// log: logger initialized at startup // log: logger initialized at startup
// vController: Varnish controller initialied at startup // vController: Varnish controller initialied at startup
// listers: client-go/lister instance for each resource type // listers: client-go/lister instance for each resource type
// recorder: Event broadcaster initialized at startup // recorder: Event broadcaster initialized at startup
func NewNamespaceQueues( func NewNamespaceQueues(
log *logrus.Logger, log *logrus.Logger,
updater *SpecUpdater, updater *SpecUpdater,
......
...@@ -73,12 +73,12 @@ type Controller struct { ...@@ -73,12 +73,12 @@ type Controller struct {
// NewController returns an instance of Controller. // NewController returns an instance of Controller.
// //
// log: logger object initialized at startup // log: logger object initialized at startup
// home: Varnish home directory // home: Varnish home directory
// tmplMap: map of template paths to file paths // tmplMap: map of template paths to file paths
// loadFile: file to be named in a VCL load command // loadFile: file to be named in a VCL load command
// admTimeout: connection timeout for the Varnish admin port // admTimeout: connection timeout for the Varnish admin port
// monIntvl: interval at which to run the monitor // monIntvl: interval at which to run the monitor
func NewController( func NewController(
log *logrus.Logger, log *logrus.Logger,
home string, home string,
...@@ -164,7 +164,7 @@ func (vc *Controller) getAddrSecret() (string, []byte, error) { ...@@ -164,7 +164,7 @@ func (vc *Controller) getAddrSecret() (string, []byte, error) {
// Update a Varnish Service to implement an configuration. // Update a Varnish Service to implement an configuration.
// //
// spec: VCL spec corresponding to the configuration // spec: VCL spec corresponding to the configuration
func (vc *Controller) Update(spec *vcl.Spec) error { func (vc *Controller) Update(spec *vcl.Spec) error {
var err error var err error
...@@ -258,7 +258,7 @@ func (vc *Controller) Update(spec *vcl.Spec) error { ...@@ -258,7 +258,7 @@ func (vc *Controller) Update(spec *vcl.Spec) error {
// HasConfig returns true iff a configuration is already loaded for a // HasConfig returns true iff a configuration is already loaded for a
// Varnish Service (so a new sync attempt is not necessary). // Varnish Service (so a new sync attempt is not necessary).
// //
// spec: VCL specification derived from the configuration // spec: VCL specification derived from the configuration
func (vc *Controller) HasConfig(spec vcl.Spec) bool { func (vc *Controller) HasConfig(spec vcl.Spec) bool {
if vc.spec == nil { if vc.spec == nil {
return false return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment