@@ -791,12 +791,12 @@ type KeyValPairs map[string]string
791
791
// KeyValPairsByZone are the KeyValPairs for all zones, by zone name.
792
792
type KeyValPairsByZone map [string ]KeyValPairs
793
793
794
- // GetKeyValPairs fetches key/value pairs for a given zone.
794
+ // GetKeyValPairs fetches key/value pairs for a given HTTP zone.
795
795
func (client * NginxClient ) GetKeyValPairs (zone string ) (KeyValPairs , error ) {
796
796
return client .getKeyValPairs (zone , HTTP )
797
797
}
798
798
799
- // GetStreamKeyValPairs fetches key/value pairs for a given zone.
799
+ // GetStreamKeyValPairs fetches key/value pairs for a given Stream zone.
800
800
func (client * NginxClient ) GetStreamKeyValPairs (zone string ) (KeyValPairs , error ) {
801
801
return client .getKeyValPairs (zone , Stream )
802
802
}
@@ -817,12 +817,12 @@ func (client *NginxClient) getKeyValPairs(zone string, stream bool) (KeyValPairs
817
817
return keyvals , nil
818
818
}
819
819
820
- // GetAllKeyValPairs fetches all key/value pairs for all zones.
820
+ // GetAllKeyValPairs fetches all key/value pairs for all HTTP zones.
821
821
func (client * NginxClient ) GetAllKeyValPairs () (KeyValPairsByZone , error ) {
822
822
return client .getAllKeyValPairs (HTTP )
823
823
}
824
824
825
- // GetStreamAllKeyValPairs fetches all key/value pairs for all zones.
825
+ // GetStreamAllKeyValPairs fetches all key/value pairs for all Stream zones.
826
826
func (client * NginxClient ) GetStreamAllKeyValPairs () (KeyValPairsByZone , error ) {
827
827
return client .getAllKeyValPairs (Stream )
828
828
}
@@ -841,12 +841,12 @@ func (client *NginxClient) getAllKeyValPairs(stream bool) (KeyValPairsByZone, er
841
841
return keyvals , nil
842
842
}
843
843
844
- // AddKeyValPair adds a new key/value pair.
844
+ // AddKeyValPair adds a new key/value pair to a given HTTP zone .
845
845
func (client * NginxClient ) AddKeyValPair (zone string , keyval KeyValPairs ) error {
846
846
return client .addKeyValPair (zone , keyval , HTTP )
847
847
}
848
848
849
- // AddStreamKeyValPair adds a new key/value pair.
849
+ // AddStreamKeyValPair adds a new key/value pair to a given Stream zone .
850
850
func (client * NginxClient ) AddStreamKeyValPair (zone string , keyval KeyValPairs ) error {
851
851
return client .addKeyValPair (zone , keyval , Stream )
852
852
}
@@ -883,7 +883,7 @@ func (client *NginxClient) addKeyValPair(zone string, keyval KeyValPairs, stream
883
883
return nil
884
884
}
885
885
886
- // ModifyKeyValPair modifies the value of an existing key.
886
+ // ModifyKeyValPair modifies the value of an existing key in a given HTTP zone .
887
887
func (client * NginxClient ) ModifyKeyValPair (zone string , keyval KeyValPairs ) error {
888
888
return client .modifyKeyValPair (zone , keyval , HTTP )
889
889
}
@@ -985,12 +985,12 @@ func (client *NginxClient) deleteKeyValuePair(zone string, key string, stream bo
985
985
return nil
986
986
}
987
987
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.
989
989
func (client * NginxClient ) DeleteKeyValuePairs (zone string ) error {
990
990
return client .deleteKeyValPairs (zone , HTTP )
991
991
}
992
992
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.
994
994
func (client * NginxClient ) DeleteStreamKeyValuePairs (zone string ) error {
995
995
return client .deleteKeyValPairs (zone , Stream )
996
996
}
0 commit comments