Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 272 for Resource (0.17 sec)

  1. internal/arn/arn_test.go

    		wantErr bool
    	}{
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    				resourceID:   "my-role",
    				serverRegion: "us-east-1",
    			},
    			want: ARN{
    				Partition:    "minio",
    				Service:      "iam",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			wantErr: false,
    		},
    		{
    			name: "valid resource ID must succeed",
    			args: args{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. internal/config/identity/openid/openid.go

    					return c, config.Errorf("unable to parse a domain from the OpenID config")
    				}
    			}
    			if p.ClientID == "" {
    				return c, config.Errorf("client ID must not be empty")
    			}
    
    			// We set the resource ID of the role arn as a hash of client
    			// ID, so we can get a short roleARN that stays the same on
    			// restart.
    			var resourceID string
    			{
    				h := sha1.New()
    				h.Write([]byte(p.ClientID))
    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)
  3. istioctl/pkg/cli/mock_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package cli
    
    import (
    	"net/http"
    
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	"k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/istio/pkg/kube"
    )
    
    func init() {
    	MakeKubeFactory = func(k kube.CLIClient) util.Factory {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  4. istioctl/pkg/analyze/analyze.go

    				selectedNamespace = ""
    			} else if selectedNamespace == "" {
    				selectedNamespace = metav1.NamespaceDefault
    			}
    
    			sa := local.NewIstiodAnalyzer(analyzers.AllCombined(),
    				resource.Namespace(selectedNamespace),
    				resource.Namespace(ctx.IstioNamespace()), nil)
    
    			// Check for suppressions and add them to our SourceAnalyzer
    			suppressions := make([]local.AnalysisSuppression, 0, len(suppress))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. cmd/auth-handler.go

    		Claims:          cred.Claims,
    	}) {
    		retSet = true
    	}
    	if byPassSet || retSet {
    		return ErrNone
    	}
    	return ErrAccessDenied
    }
    
    // isPutActionAllowed - check if PUT operation is allowed on the resource, this
    // call verifies bucket policies and IAM policies, supports multi user
    // checks etc.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  6. cmd/api-response.go

    	errBody string, reqURL *url.URL,
    ) {
    	reqInfo := logger.GetReqInfo(ctx)
    	errorResponse := APIErrorResponse{
    		Code:       err.Code,
    		Message:    errBody,
    		Resource:   reqURL.Path,
    		BucketName: reqInfo.BucketName,
    		Key:        reqInfo.ObjectName,
    		RequestID:  w.Header().Get(xhttp.AmzRequestID),
    		HostID:     globalDeploymentID(),
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  7. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    // limitations under the License.
    
    package ztunnelconfig
    
    import (
    	"bytes"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	cmdutil "k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/kube"
    )
    
    type execTestCase struct {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate.go

    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/resource"
    	"istio.io/istio/pkg/config/validation"
    	"istio.io/istio/pkg/kube/labels"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/url"
    )
    
    var (
    	errMissingFilename = errors.New(`error: you must specify resources by --filename.
    Example resource specifications include:
       '-f rsrc.yaml'
       '--filename=rsrc.json'`)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users_test.go

       "Action": [
        "s3:*"
       ],
       "Resource": [
        "arn:aws:s3:::public",
        "arn:aws:s3:::public/*"
       ]
      }
     ]
    }`)
    
    	fullS3PolicyBytes := []byte(`{
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "s3:*"
          ],
          "Resource": [
            "arn:aws:s3:::*"
          ]
        }
      ]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  10. istioctl/pkg/kubeinject/kubeinject.go

    	injectCmd.PersistentFlags().StringVarP(&inFilename, "filename", "f",
    		"", "Input Kubernetes resource filename")
    	injectCmd.PersistentFlags().StringVarP(&outFilename, "output", "o",
    		"", "Modified output Kubernetes resource filename")
    	injectCmd.PersistentFlags().StringVar(&iopFilename, "operatorFileName", "",
    		"Path to file containing IstioOperator custom resources. If configs from files like "+
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
Back to top