Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 336 for init (0.26 sec)

  1. internal/once/init.go

    // initialized when the provided function returns nil.
    
    // Init represents the structure.
    type Init struct {
    	done uint32
    	m    sync.Mutex
    }
    
    // Do is similar to sync.Once.Do - makes one successful
    // call to the function. ie, it invokes the function
    // if it is not successful yet.
    func (l *Init) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.do(f)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 09 04:20:31 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. internal/init/init.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package init
    
    import "os"
    
    func init() {
    	// All MinIO operations must be under UTC.
    	os.Setenv("TZ", "UTC")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Nov 04 23:44:38 GMT 2022
    - 874 bytes
    - Viewed (0)
  3. operator/cmd/mesh/operator-init.go

    }
    
    func operatorInitCmd(ctx cli.Context, rootArgs *RootArgs, oiArgs *operatorInitArgs) *cobra.Command {
    	return &cobra.Command{
    		Use:   "init",
    		Short: "Installs the Istio operator controller in the cluster.",
    		Long:  "The init subcommand installs the Istio operator controller in the cluster.",
    		Args:  cobra.ExactArgs(0),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. internal/init/init_darwin_amd64.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package init
    
    import (
    	"os"
    
    	"github.com/klauspost/cpuid/v2"
    )
    
    func init() {
    	// All MinIO operations must be under UTC.
    	os.Setenv("TZ", "UTC")
    
    	// Temporary workaround for
    	// https://github.com/golang/go/issues/49233
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Nov 04 23:44:38 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  5. internal/event/target/mqtt.go

    		}
    		if m.QoS == 0 {
    			return errors.New("qos should be set to 1 or 2 if queueDir is set")
    		}
    	}
    
    	return nil
    }
    
    // MQTTTarget - MQTT target.
    type MQTTTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       MQTTArgs
    	client     mqtt.Client
    	store      store.Store[event.Event]
    	quitCh     chan struct{}
    	loggerOnce logger.LogOnce
    }
    
    // ID - returns target ID.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  6. internal/logger/target/testlogger/testlogger.go

    	"github.com/minio/pkg/v2/logger/message/log"
    )
    
    const (
    	logMessage = iota
    	errorMessage
    	fatalMessage
    )
    
    // T is the test logger.
    var T = &testLogger{}
    
    func init() {
    	logger.AddSystemTarget(context.Background(), T)
    }
    
    type testLogger struct {
    	current atomic.Pointer[testing.TB]
    	action  atomic.Int32
    }
    
    // SetLogTB will set the logger to output to tb.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/cgo_thread_lock.go

    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    	"time"
    )
    
    //export Gosched
    func Gosched() {
    	runtime.Gosched()
    }
    
    func init() {
    	testThreadLockFunc = testThreadLock
    }
    
    func testThreadLock(t *testing.T) {
    	stop := make(chan int)
    	go func() {
    		// We need the G continue running,
    		// so the M has a chance to run this G.
    		for {
    			select {
    			case <-stop:
    				return
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  8. main.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main // import "github.com/minio/minio"
    
    import (
    	"os"
    
    	// MUST be first import.
    	_ "github.com/minio/minio/internal/init"
    
    	minio "github.com/minio/minio/cmd"
    )
    
    func main() {
    	minio.Main(os.Args)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 973 bytes
    - Viewed (0)
  9. operator/cmd/mesh/operator_test.go

    	}
    }
    
    // TODO: rewrite this with running the actual top level command.
    func TestOperatorInit(t *testing.T) {
    	goldenFilepath := filepath.Join(operatorRootDir, "cmd/mesh/testdata/operator/output/operator-init.yaml")
    	rootArgs := &RootArgs{}
    	oiArgs := &operatorInitArgs{
    		common: operatorCommonArgs{
    			hub:               "foo.io/istio",
    			tag:               "1.2.3",
    			operatorNamespace: "operator-test-namespace",
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  10. istioctl/pkg/config/config_test.go

    			WantException: false,
    		},
    	}
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) {
    			testutil.VerifyOutput(t, Cmd(), c)
    		})
    	}
    }
    
    func init() {
    	viper.SetDefault("istioNamespace", constants.IstioSystemNamespace)
    	viper.SetDefault("xds-port", 15012)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
Back to top