Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for octicons (0.17 sec)

  1. istioctl/cmd/options_test.go

    func TestLogHelp(t *testing.T) {
    	var out bytes.Buffer
    	rootCmd := GetRootCmd([]string{"options"})
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    
    	fErr := rootCmd.Execute()
    	if fErr != nil {
    		t.Fatalf("options failed with %v and %q\n", fErr, out.String())
    	}
    	if !regexp.MustCompile(expectedOutput).Match(out.Bytes()) {
    		t.Fatalf("'istioctl options' expected output\n%s\n  got\n%s",
    			expectedOutput, out.String())
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Sep 14 02:38:54 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/options.go

    Ben Leggett <******@****.***> 1714515878 -0400
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    		Client:      s.TestSuiteCommon.client,
    		STSEndpoint: s.endPoint,
    		Options: cr.STSAssumeRoleOptions{
    			AccessKey: accessKey,
    			SecretKey: secretKey,
    			Location:  "",
    		},
    	}
    
    	value, err := assumeRole.Retrieve()
    	if err != nil {
    		c.Fatalf("err calling assumeRole: %v", err)
    	}
    
    	minioClient, err := minio.New(s.endpoint, &minio.Options{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. cmd/admin-handler-utils.go

    // If any of the supplied actions are allowed it will be successful.
    // If nil ObjectLayer is returned, the operation is not permitted.
    // When nil ObjectLayer has been returned an error has always been sent to w.
    func validateAdminReq(ctx context.Context, w http.ResponseWriter, r *http.Request, actions ...policy.AdminAction) (ObjectLayer, auth.Credentials) {
    	// Get current object layer instance.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. docs/sts/assume-role.go

    	if minioUsername == "" || minioPassword == "" {
    		flag.PrintDefaults()
    		return
    	}
    
    	// The credentials package in minio-go provides an interface to call the
    	// STS API.
    
    	// Initialize credential options
    	var stsOpts cr.STSAssumeRoleOptions
    	stsOpts.AccessKey = minioUsername
    	stsOpts.SecretKey = minioPassword
    
    	if sessionPolicyFile != "" {
    		var policy string
    		if f, err := os.Open(sessionPolicyFile); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  6. docs/extensions/s3zip/examples/minio-go/main.go

    import (
    	"context"
    	"io"
    	"log"
    	"os"
    
    	"github.com/minio/minio-go/v7"
    	"github.com/minio/minio-go/v7/pkg/credentials"
    )
    
    func main() {
    	s3Client, err := minio.New("minio-server-address:9000", &minio.Options{
    		Creds: credentials.NewStaticV4("access-key", "secret-key", ""),
    	})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	var opts minio.GetObjectOptions
    
    	// Add extract header to request:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 14 18:04:14 GMT 2021
    - 694 bytes
    - Viewed (0)
  7. istioctl/pkg/clioptions/control_plane.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package clioptions
    
    import "github.com/spf13/cobra"
    
    // ControlPlaneOptions defines common options used by istioctl.
    type ControlPlaneOptions struct {
    	// Revision is the istio.io/rev control plane revision
    	Revision string
    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 01 05:47:27 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  8. internal/http/server.go

    type Server struct {
    	http.Server
    	Addrs           []string      // addresses on which the server listens for new connection.
    	TCPOptions      TCPOptions    // all the configurable TCP conn specific configurable options.
    	ShutdownTimeout time.Duration // timeout used for graceful server shutdown.
    	listenerMutex   sync.Mutex    // to guard 'listener' field.
    	listener        *httpListener // HTTP listener for all 'Addrs' field.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/flags/flags.go

    	if len(*m) == 0 {
    		return ""
    	}
    	return fmt.Sprint(*m)
    }
    
    func (m *MultiFlag) Set(val string) error {
    	(*m) = append(*m, val)
    	return nil
    }
    
    func Usage() {
    	fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n")
    	fmt.Fprintf(os.Stderr, "Flags:\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    func Parse() {
    	objabi.Flagparse(Usage)
    	if flag.NArg() == 0 {
    		flag.Usage()
    	}
    
    	// Flag refinement.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. docs/sts/custom-token-identity.go

    	}
    
    	// Use generated credentials to authenticate with MinIO server
    	stsEndpointURL, err := url.Parse(stsEndpoint)
    	if err != nil {
    		log.Fatalf("Error parsing sts endpoint: %v", err)
    	}
    	copts := &minio.Options{
    		Creds:  li,
    		Secure: stsEndpointURL.Scheme == "https",
    	}
    	minioClient, err := minio.New(stsEndpointURL.Host, copts)
    	if err != nil {
    		log.Fatalf("Error initializing client: ", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3.4K bytes
    - Viewed (0)
Back to top