github.com/vchain-us/vcn@v0.9.11-0.20210921212052-a2484d23c0b3/pkg/bom/executor/executor.go (about)

     1  /*
     2   * Copyright (c) 2021 CodeNotary, Inc. All Rights Reserved.
     3   * This software is released under GPL3.
     4   * The full license information can be found under:
     5   * https://www.gnu.org/licenses/gpl-3.0.en.html
     6   *
     7   */
     8  
     9  package executor
    10  
    11  import (
    12  	"io"
    13  )
    14  
    15  type Executor interface {
    16  	Exec(cmd []string) (stdout, stderr []byte, exitCode int, err error)
    17  	ReadFile(path string) ([]byte, error)
    18  	ReadDir(path string) (io.ReadCloser, error)
    19  	Close() error
    20  }