Documentation ¶
Index ¶
- Constants
- func CosignRoot() string
- func CosignTargets() string
- func GcsRemoteStore(ctx context.Context, bucket string, opts *GcsRemoteOptions, ...) (client.RemoteStore, error)
- func GetTarget(ctx context.Context, name string, out client.Destination) error
- func Init(ctx context.Context, rootBytes []byte, remote client.RemoteStore, ...) error
- func RootClient(ctx context.Context, local string, remote client.RemoteStore) (*client.Client, error)
- type ByteDestination
- type GcsRemoteOptions
Constants ¶
View Source
const (
TufRootEnv = "TUF_ROOT"
)
Variables ¶
This section is empty.
Functions ¶
func CosignRoot ¶
func CosignRoot() string
func CosignTargets ¶
func CosignTargets() string
func GcsRemoteStore ¶
func GcsRemoteStore(ctx context.Context, bucket string, opts *GcsRemoteOptions, client *storage.Client) (client.RemoteStore, error)
A remote store for TUF metadata on GCS.
func Init ¶
Instantiates the global TUF client. Downloads all initial targets and stores in $HOME/.sigstore/root/targets/.
func RootClient ¶
func RootClient(ctx context.Context, local string, remote client.RemoteStore) (*client.Client, error)
Gets the global TUF client if the directory exists. This will not make a remote call.
Types ¶
type ByteDestination ¶
func (*ByteDestination) Delete ¶
func (b *ByteDestination) Delete() error
type GcsRemoteOptions ¶
Click to show internal directories.
Click to hide internal directories.