github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/plugin/distribution/types.go (about)

     1  package distribution
     2  
     3  import "errors"
     4  
     5  // ErrUnsupportedRegistry indicates that the registry does not support v2 protocol
     6  var ErrUnsupportedRegistry = errors.New("only V2 repositories are supported for plugin distribution")
     7  
     8  // ErrUnsupportedMediaType indicates we are pulling content that's not a plugin
     9  var ErrUnsupportedMediaType = errors.New("content is not a plugin")
    10  
    11  // DefaultTag is the default tag for plugins
    12  const DefaultTag = "latest"