Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrShowHelp = errors.New("receive show help args")
)
Functions ¶
This section is empty.
Types ¶
type Auther ¶
Auther provides API Token with authentication on GitHub Apps.
func NewAutherFromFile ¶
func NewAutherFromFile(privateKey string, appID int64, options ...AutherOption) (Auther, error)
NewAutherFromFile is constructor with filename that private key for Auther.
type AutherOption ¶
type AutherOption func(*auther) error
AutherOption is set parameter. This is like a Functional Option Pattern.
func WithBaseURL ¶
func WithBaseURL(base string) AutherOption
WithBaseURL provides change api endpoint. For GitHub Enterprise
func WithInstallationID ¶
func WithInstallationID(id int64) AutherOption
WithInstallationID is option parameter with installation ID for Auther.
func WithLogin ¶
func WithLogin(ctx context.Context, login string) AutherOption
WithLogin is optional parameter for Auther. This provides to search a installation ID from login name.
func WithStore ¶
func WithStore(store Store) AutherOption
WithStore provides injection token store to Auther.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner provides retrieving token
Click to show internal directories.
Click to hide internal directories.