{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oci\n\n## Constants\n\n```go\nconst ProviderID = \"OCI\"\n```\n\n## Types\n\n```go\ntype Backend struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBackend(repository string, regOpts *RegistryOptions, opts ...NewBackendOpt) (*Backend, error)\n```\n\n```go\nfunc (b *Backend) CheckWritePermissions(_ context.Context) error\n```\nCheckWritePermissions performs an actual write to the repository to check that the credentials\n\n```go\nfunc (b *Backend) Describe(_ context.Context, digest string) (*pb.CASResource, error)\n```\n\n```go\nfunc (b *Backend) Download(_ context.Context, w io.Writer, digest string) error\n```\n\n```go\nfunc (b *Backend) Exists(_ context.Context, digest string) (bool, error)\n```\nExists check that the artifact is already present in the repository and it points to the same image digest, meaning it has not been re-pushed/replaced This method is very naive so signatures will be used in future releases\n\n```go\nfunc (b *Backend) Upload(_ context.Context, r io.Reader, resource *pb.CASResource) error\n```\n\n```go\ntype BackendProvider struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBackendProvider(cReader credentials.Reader) *BackendProvider\n```\n\n```go\nfunc (p *BackendProvider) FromCredentials(ctx context.Context, secretName string) (backend.UploaderDownloader, error)\n```\n\n```go\nfunc (p *BackendProvider) ID() string\n```\n\n```go\nfunc (p *BackendProvider) ValidateAndExtractCredentials(location string, credsJSON []byte) (any, error)\n```\n\n```go\ntype Keychain = authn.Keychain\n```\n\n```go\ntype NewBackendOpt func(*Backend)\n```\n\n```go\nfunc WithPrefix(prefix string) NewBackendOpt\n```\n\n```go\ntype RegistryOptions struct {\n\tAllowInsecure bool\n\tKeychain      Keychain\n}\n```\n\n","path":"github.com/chainloop-dev/chainloop/pkg/blobmanager/oci","name":"oci","synopsis":"","isRedistributable":true}
