Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NamespaceFormat (0.23 sec)

  1. internal/event/event.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import (
    	"github.com/minio/madmin-go/v3"
    )
    
    const (
    	// NamespaceFormat - namespace log format used in some event targets.
    	NamespaceFormat = "namespace"
    
    	// AccessFormat - access log format used in some event targets.
    	AccessFormat = "access"
    
    	// AMZTimeFormat - event time format.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. internal/event/target/postgresql.go

    		return fmt.Errorf("empty table name")
    	}
    	if err := validatePsqlTableName(p.Table); err != nil {
    		return err
    	}
    
    	if p.Format != "" {
    		f := strings.ToLower(p.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return fmt.Errorf("unrecognized format value")
    		}
    	}
    
    	if p.ConnectionString != "" {
    		// No pq API doesn't help to validate connection string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. internal/event/target/mysql.go

    }
    
    // Validate MySQLArgs fields
    func (m MySQLArgs) Validate() error {
    	if !m.Enable {
    		return nil
    	}
    
    	if m.Format != "" {
    		f := strings.ToLower(m.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return fmt.Errorf("unrecognized format")
    		}
    	}
    
    	if m.Table == "" {
    		return fmt.Errorf("table unspecified")
    	}
    
    	if m.DSN != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  4. internal/event/target/redis.go

    	EventTime string
    }
    
    // Validate RedisArgs fields
    func (r RedisArgs) Validate() error {
    	if !r.Enable {
    		return nil
    	}
    
    	if r.Format != "" {
    		f := strings.ToLower(r.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return fmt.Errorf("unrecognized format")
    		}
    	}
    
    	if r.Key == "" {
    		return fmt.Errorf("empty key")
    	}
    
    	if r.QueueDir != "" {
    		if !filepath.IsAbs(r.QueueDir) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. internal/event/target/elasticsearch.go

    	if !a.Enable {
    		return nil
    	}
    	if a.URL.IsEmpty() {
    		return errors.New("empty URL")
    	}
    	if a.Format != "" {
    		f := strings.ToLower(a.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return errors.New("format value unrecognized")
    		}
    	}
    	if a.Index == "" {
    		return errors.New("empty index value")
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top