github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/sharedaction/config.go (about)

     1  package sharedaction
     2  
     3  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . Config
     4  
     5  // Config a way of getting basic CF configuration
     6  type Config interface {
     7  	AccessToken() string
     8  	BinaryName() string
     9  	CurrentUserName() (string, error)
    10  	HasTargetedOrganization() bool
    11  	HasTargetedSpace() bool
    12  	IsCFOnK8s() bool
    13  	RefreshToken() string
    14  	TargetedOrganizationName() string
    15  	Verbose() (bool, []string)
    16  }