mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Update storageos api dependency to 0.3.4
This commit is contained in:
		
							
								
								
									
										13
									
								
								vendor/github.com/storageos/go-api/rule.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/storageos/go-api/rule.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -72,10 +72,15 @@ func (c *Client) Rule(namespace string, ref string) (*types.Rule, error) {
 | 
			
		||||
 | 
			
		||||
// RuleCreate creates a rule on the server and returns the new object.
 | 
			
		||||
func (c *Client) RuleCreate(opts types.RuleCreateOptions) (*types.Rule, error) {
 | 
			
		||||
	resp, err := c.do("POST", RuleAPIPrefix, doOptions{
 | 
			
		||||
		data:      opts,
 | 
			
		||||
		namespace: opts.Namespace,
 | 
			
		||||
		context:   opts.Context,
 | 
			
		||||
	path, err := namespacedPath(opts.Namespace, RuleAPIPrefix)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	resp, err := c.do("POST", path, doOptions{
 | 
			
		||||
		data: opts,
 | 
			
		||||
		// namespace: opts.Namespace,
 | 
			
		||||
		context: opts.Context,
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user