Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for BatchJobPrefix (0.14 sec)

  1. cmd/batch-handlers_gen_test.go

    	}
    }
    
    func BenchmarkMarshalMsgBatchJobPrefix(b *testing.B) {
    	v := BatchJobPrefix{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgBatchJobPrefix(b *testing.B) {
    	v := BatchJobPrefix{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. cmd/batch-handlers_gen.go

    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *BatchJobPrefix) DecodeMsg(dc *msgp.Reader) (err error) {
    	var zb0002 uint32
    	zb0002, err = dc.ReadArrayHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	if cap((*z)) >= int(zb0002) {
    		(*z) = (*z)[:zb0002]
    	} else {
    		(*z) = make(BatchJobPrefix, zb0002)
    	}
    	for zb0001 := range *z {
    		(*z)[zb0001], err = dc.ReadString()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	}
    	return lookup
    }
    
    // BatchJobPrefix - to support prefix field yaml unmarshalling with string or slice of strings
    type BatchJobPrefix []string
    
    var _ yaml.Unmarshaler = &BatchJobPrefix{}
    
    // UnmarshalYAML - to support prefix field yaml unmarshalling with string or slice of strings
    func (b *BatchJobPrefix) UnmarshalYAML(value *yaml.Node) error {
    	// try slice first
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. cmd/batch-handlers_test.go

    import (
    	"slices"
    	"testing"
    
    	"gopkg.in/yaml.v3"
    )
    
    func TestBatchJobPrefix_UnmarshalYAML(t *testing.T) {
    	type args struct {
    		yamlStr string
    	}
    	type PrefixTemp struct {
    		Prefix BatchJobPrefix `yaml:"prefix"`
    	}
    	tests := []struct {
    		name    string
    		b       PrefixTemp
    		args    args
    		want    []string
    		wantErr bool
    	}{
    		{
    			name: "test1",
    			b:    PrefixTemp{},
    			args: args{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. cmd/batch-replicate.go

    // the source of the data for the target
    type BatchJobReplicateSource struct {
    	Type     BatchJobReplicateResourceType `yaml:"type" json:"type"`
    	Bucket   string                        `yaml:"bucket" json:"bucket"`
    	Prefix   BatchJobPrefix                `yaml:"prefix" json:"prefix"`
    	Endpoint string                        `yaml:"endpoint" json:"endpoint"`
    	Path     string                        `yaml:"path" json:"path"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. cmd/batch-expire.go

    type BatchJobExpire struct {
    	line, col       int
    	APIVersion      string                 `yaml:"apiVersion" json:"apiVersion"`
    	Bucket          string                 `yaml:"bucket" json:"bucket"`
    	Prefix          BatchJobPrefix         `yaml:"prefix" json:"prefix"`
    	NotificationCfg BatchJobNotification   `yaml:"notify" json:"notify"`
    	Retry           BatchJobRetry          `yaml:"retry" json:"retry"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top