Skip to content

Commit 3c32468

Browse files
pleshakovisaachawley
authored and
isaac
committed
Update docstrings
Co-Authored-By: isaachawley <isaachawley@gmail.com>
1 parent 194a6b7 commit 3c32468

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

client/nginx.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,12 @@ type KeyValPairs map[string]string
791791
// KeyValPairsByZone are the KeyValPairs for all zones, by zone name.
792792
type KeyValPairsByZone map[string]KeyValPairs
793793

794-
// GetKeyValPairs fetches key/value pairs for a given zone.
794+
// GetKeyValPairs fetches key/value pairs for a given HTTP zone.
795795
func (client *NginxClient) GetKeyValPairs(zone string) (KeyValPairs, error) {
796796
return client.getKeyValPairs(zone, HTTP)
797797
}
798798

799-
// GetStreamKeyValPairs fetches key/value pairs for a given zone.
799+
// GetStreamKeyValPairs fetches key/value pairs for a given Stream zone.
800800
func (client *NginxClient) GetStreamKeyValPairs(zone string) (KeyValPairs, error) {
801801
return client.getKeyValPairs(zone, Stream)
802802
}
@@ -817,12 +817,12 @@ func (client *NginxClient) getKeyValPairs(zone string, stream bool) (KeyValPairs
817817
return keyvals, nil
818818
}
819819

820-
// GetAllKeyValPairs fetches all key/value pairs for all zones.
820+
// GetAllKeyValPairs fetches all key/value pairs for all HTTP zones.
821821
func (client *NginxClient) GetAllKeyValPairs() (KeyValPairsByZone, error) {
822822
return client.getAllKeyValPairs(HTTP)
823823
}
824824

825-
// GetStreamAllKeyValPairs fetches all key/value pairs for all zones.
825+
// GetStreamAllKeyValPairs fetches all key/value pairs for all Stream zones.
826826
func (client *NginxClient) GetStreamAllKeyValPairs() (KeyValPairsByZone, error) {
827827
return client.getAllKeyValPairs(Stream)
828828
}
@@ -841,12 +841,12 @@ func (client *NginxClient) getAllKeyValPairs(stream bool) (KeyValPairsByZone, er
841841
return keyvals, nil
842842
}
843843

844-
// AddKeyValPair adds a new key/value pair.
844+
// AddKeyValPair adds a new key/value pair to a given HTTP zone.
845845
func (client *NginxClient) AddKeyValPair(zone string, keyval KeyValPairs) error {
846846
return client.addKeyValPair(zone, keyval, HTTP)
847847
}
848848

849-
// AddStreamKeyValPair adds a new key/value pair.
849+
// AddStreamKeyValPair adds a new key/value pair to a given Stream zone.
850850
func (client *NginxClient) AddStreamKeyValPair(zone string, keyval KeyValPairs) error {
851851
return client.addKeyValPair(zone, keyval, Stream)
852852
}
@@ -883,7 +883,7 @@ func (client *NginxClient) addKeyValPair(zone string, keyval KeyValPairs, stream
883883
return nil
884884
}
885885

886-
// ModifyKeyValPair modifies the value of an existing key.
886+
// ModifyKeyValPair modifies the value of an existing key in a given HTTP zone.
887887
func (client *NginxClient) ModifyKeyValPair(zone string, keyval KeyValPairs) error {
888888
return client.modifyKeyValPair(zone, keyval, HTTP)
889889
}
@@ -985,12 +985,12 @@ func (client *NginxClient) deleteKeyValuePair(zone string, key string, stream bo
985985
return nil
986986
}
987987

988-
// DeleteKeyValuePairs deletes all the key-value pairs in a given zone.
988+
// DeleteKeyValuePairs deletes all the key-value pairs in a given HTTP zone.
989989
func (client *NginxClient) DeleteKeyValuePairs(zone string) error {
990990
return client.deleteKeyValPairs(zone, HTTP)
991991
}
992992

993-
// DeleteStreamKeyValuePairs deletes all the key-value pairs in a given zone.
993+
// DeleteStreamKeyValuePairs deletes all the key-value pairs in a given Stream zone.
994994
func (client *NginxClient) DeleteStreamKeyValuePairs(zone string) error {
995995
return client.deleteKeyValPairs(zone, Stream)
996996
}

0 commit comments

Comments
 (0)