github.com/drone/runner-go@v1.12.0/pipeline/uploader.go (about)

     1  package pipeline
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  type Uploader interface {
     8  	UploadCard(context.Context, []byte, *State, string) error
     9  }
    10  
    11  func NopUploader() Uploader {
    12  	return new(nopUploader)
    13  }
    14  
    15  type nopUploader struct{}
    16  
    17  func (*nopUploader) UploadCard(context.Context, []byte, *State, string) error { return nil }