github.com/blend/go-sdk@v1.20220411.3/selector/any.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package selector
     9  
    10  // Any matches everything
    11  type Any struct{}
    12  
    13  // Matches returns true
    14  func (a Any) Matches(labels Labels) bool {
    15  	return true
    16  }
    17  
    18  // Validate validates the selector
    19  func (a Any) Validate() (err error) {
    20  	return nil
    21  }
    22  
    23  // String returns a string representation of the selector
    24  func (a Any) String() string {
    25  	return ""
    26  }