github.com/abemedia/appcast@v0.4.0/target/target.go (about)

     1  package target
     2  
     3  import (
     4  	"context"
     5  	"io"
     6  )
     7  
     8  type Target interface {
     9  	NewWriter(ctx context.Context, path string) (io.WriteCloser, error)
    10  	NewReader(ctx context.Context, path string) (io.ReadCloser, error)
    11  	Remove(ctx context.Context, path string) error
    12  	Sub(dir string) Target
    13  	URL(ctx context.Context, path string) (string, error)
    14  }