Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 483 for Bool (0.14 sec)

  1. cmd/batch-job-common-types_gen.go

    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Disable")
    					return
    				}
    				z.Disable = nil
    			} else {
    				if z.Disable == nil {
    					z.Disable = new(bool)
    				}
    				*z.Disable, err = dc.ReadBool()
    				if err != nil {
    					err = msgp.WrapError(err, "Disable")
    					return
    				}
    			}
    		case "Batch":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. cmd/update.go

    }
    
    // IsDCOS returns true if minio is running in DCOS.
    func IsDCOS() bool {
    	// http://mesos.apache.org/documentation/latest/docker-containerizer/
    	// Mesos docker containerizer sets this value
    	return env.Get("MESOS_CONTAINER_NAME", "") != ""
    }
    
    // IsKubernetes returns true if minio is running in kubernetes.
    func IsKubernetes() bool {
    	// Kubernetes env used to validate if we are
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. cmd/common-main_test.go

    package cmd
    
    import (
    	"errors"
    	"os"
    	"reflect"
    	"testing"
    )
    
    func Test_readFromSecret(t *testing.T) {
    	testCases := []struct {
    		content       string
    		expectedErr   bool
    		expectedValue string
    	}{
    		{
    			"value\n",
    			false,
    			"value",
    		},
    		{
    			" \t\n Hello, Gophers \n\t\r\n",
    			false,
    			"Hello, Gophers",
    		},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. internal/config/identity/openid/openid.go

    	v, err := arn.NewIAMRoleARN("dummy-internal", "")
    	if err != nil {
    		panic("should not happen!")
    	}
    	return v
    }()
    
    // Config - OpenID Config
    type Config struct {
    	Enabled bool
    
    	// map of roleARN to providerCfg's
    	arnProviderCfgsMap map[arn.ARN]*providerCfg
    
    	// map of config names to providerCfg's
    	ProviderCfgs map[string]*providerCfg
    
    	pubKeys          publicKeys
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  5. internal/config/lambda/event/targetlist.go

    package event
    
    import (
    	"fmt"
    	"net/http"
    	"strings"
    	"sync"
    )
    
    // Target - lambda target interface
    type Target interface {
    	ID() TargetID
    	IsActive() (bool, error)
    	Send(Event) (*http.Response, error)
    	Stat() TargetStat
    	Close() error
    }
    
    // TargetStats is a collection of stats for multiple targets.
    type TargetStats struct {
    	TargetStats map[string]TargetStat
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. internal/bucket/versioning/versioning_test.go

    import (
    	"encoding/xml"
    	"strings"
    	"testing"
    )
    
    func TestParseConfig(t *testing.T) {
    	testcases := []struct {
    		input            string
    		err              error
    		excludedPrefixes []string
    		excludeFolders   bool
    	}{
    		{
    			input: `<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
                                      <Status>Enabled</Status>
                                    </VersioningConfiguration>`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 08 05:06:44 GMT 2022
    - 8.8K bytes
    - Viewed (0)
  7. internal/event/target/webhook.go

    func (target *WebhookTarget) IsActive() (bool, error) {
    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    // Store returns any underlying store if set.
    func (target *WebhookTarget) Store() event.TargetStore {
    	return target.store
    }
    
    func (target *WebhookTarget) isActive() (bool, error) {
    	conn, err := net.DialTimeout("tcp", target.addr, 5*time.Second)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 20 22:40:07 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  8. cmd/encryption-v1_test.go

    		},
    		metadata: map[string]string{
    			xhttp.AmzServerSideEncryptionCustomerKey: "XAm0dRrJsEsyPb1UuFNezv1bl9hxuYsgUVC/MUctE2k=",
    		},
    	},
    }
    
    func TestEncryptRequest(t *testing.T) {
    	defer func(flag bool) { globalIsTLS = flag }(globalIsTLS)
    	globalIsTLS = true
    	for i, test := range encryptRequestTests {
    		content := bytes.NewReader(make([]byte, 64))
    		req := &http.Request{Header: http.Header{}}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  9. internal/config/browser/browser.go

    // Config storage class configuration
    type Config struct {
    	CSPPolicy             string `json:"csp_policy"`
    	HSTSSeconds           int    `json:"hsts_seconds"`
    	HSTSIncludeSubdomains bool   `json:"hsts_include_subdomains"`
    	HSTSPreload           bool   `json:"hsts_preload"`
    	ReferrerPolicy        string `json:"referrer_policy"`
    }
    
    // Update Updates browser with new config
    func (browseCfg *Config) Update(newCfg Config) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. internal/disk/disk_windows.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	return false, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 951 bytes
    - Viewed (0)
Back to top