Documentation ¶
Index ¶
- func Browse(client Client, branchName string) (string, error)
- func Comment(client Client, branchName, comment string) error
- func GetFileLocation() string
- func GetIssueId(branchName string) string
- func GetUserHomeOrDefault() string
- func Load() (map[string]string, error)
- func Login(client Client) (bool, error)
- func Save(values map[string]string) error
- func SlugifyTitle(ticketTitle string) string
- func Start(client Client, issueType, issueId string) (string, error)
- type Client
- type JiraClient
- func (j *JiraClient) Authenticate(fields map[string]string) bool
- func (j *JiraClient) Browse(branchName string) (string, error)
- func (j *JiraClient) Comment(branchName, comment string) error
- func (j *JiraClient) FormatField(fieldName string, value string) string
- func (j *JiraClient) GetAuthFields() map[string]bool
- func (j *JiraClient) GetBranchName(issueType string, issueId string) (string, error)
- func (j *JiraClient) GetName() string
- func (j *JiraClient) Start(issueType string, issueId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileLocation ¶ added in v1.2.0
func GetFileLocation() string
func GetIssueId ¶ added in v1.2.0
func GetUserHomeOrDefault ¶ added in v1.2.0
func GetUserHomeOrDefault() string
func SlugifyTitle ¶
Types ¶
type Client ¶ added in v1.2.0
type Client interface { GetAuthFields() map[string]bool GetName() string FormatField(fieldName string, value string) string Authenticate(fields map[string]string) bool Start(issueType string, issueId string) (branchName string, err error) Browse(branchName string) (string, error) Comment(branchName, comment string) error }
func NewAuthenticatedClient ¶ added in v1.2.0
type JiraClient ¶ added in v1.2.0
type JiraClient struct {
// contains filtered or unexported fields
}
func NewJiraClient ¶ added in v1.2.0
func NewJiraClient() *JiraClient
func (*JiraClient) Authenticate ¶ added in v1.2.0
func (j *JiraClient) Authenticate(fields map[string]string) bool
func (*JiraClient) Browse ¶ added in v1.2.0
func (j *JiraClient) Browse(branchName string) (string, error)
func (*JiraClient) Comment ¶ added in v1.2.0
func (j *JiraClient) Comment(branchName, comment string) error
func (*JiraClient) FormatField ¶ added in v1.2.0
func (j *JiraClient) FormatField(fieldName string, value string) string
func (*JiraClient) GetAuthFields ¶ added in v1.2.0
func (j *JiraClient) GetAuthFields() map[string]bool
func (*JiraClient) GetBranchName ¶ added in v1.2.0
func (j *JiraClient) GetBranchName(issueType string, issueId string) (string, error)
func (*JiraClient) GetName ¶ added in v1.2.0
func (j *JiraClient) GetName() string
Click to show internal directories.
Click to hide internal directories.