...

Source file src/github.com/sigstore/cosign/v2/pkg/providers/all/all.go

Documentation: github.com/sigstore/cosign/v2/pkg/providers/all

     1  //
     2  // Copyright 2021 The Sigstore Authors.
     3  //
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  //     http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    15  
    16  package all
    17  
    18  import (
    19  	"github.com/sigstore/cosign/v2/pkg/providers"
    20  
    21  	// Link in all of the providers.
    22  	// Link the GitHub one first, since we might be running in a GitHub self-hosted
    23  	// runner running in one of the other environments, and we should prefer GitHub
    24  	// credentials if we can find them.
    25  	_ "github.com/sigstore/cosign/v2/pkg/providers/github"
    26  
    27  	// Link in the rest of the providers.
    28  	_ "github.com/sigstore/cosign/v2/pkg/providers/buildkite"
    29  	_ "github.com/sigstore/cosign/v2/pkg/providers/envvar"
    30  	_ "github.com/sigstore/cosign/v2/pkg/providers/filesystem"
    31  	_ "github.com/sigstore/cosign/v2/pkg/providers/google"
    32  	_ "github.com/sigstore/cosign/v2/pkg/providers/spiffe"
    33  )
    34  
    35  // Alias these methods, so that folks can import this to get all providers.
    36  var (
    37  	Enabled     = providers.Enabled
    38  	Provide     = providers.Provide
    39  	ProvideFrom = providers.ProvideFrom
    40  )
    41  

View as plain text