Documentation ¶
Index ¶
- func GetK8sClient() (client.Client, error)
- func IsDeployReady(ctx context.Context, c client.Client, name, namespace string) wait.ConditionFunc
- func IsPodReady(ctx context.Context, c client.Client, podName, namespace string) wait.ConditionFunc
- func IsPodRunning(ctx context.Context, c client.Client, podName, namespace string) wait.ConditionFunc
- func IsUptodate(latest, current string) bool
- func NewSpinner(text string) *pterm.SpinnerPrinter
- func WaitAPIServiceReady(ctx context.Context, client client.Client) error
- func WaitForDeploymentReady(ctx context.Context, k8sClient client.Client, namespace string, name string, ...) error
- func WaitForPodsReady(ctx context.Context, k8sClient client.Client, namespace string, name string, ...) error
- type ErrorResponse
- type GithubClient
- func (c *GithubClient) Do(req *http.Request, v interface{}) (*ErrorResponse, error)
- func (c *GithubClient) DoRequest(method, path string, body, v interface{}) (*ErrorResponse, error)
- func (c *GithubClient) GetLatest(repo string) (string, error)
- func (c *GithubClient) GetTags(repo string) (*Latest, *ErrorResponse, error)
- func (c *GithubClient) NewRequest(method, path string, body interface{}) (*http.Request, error)
- type Latest
- type Obj
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetK8sClient ¶
func IsDeployReady ¶ added in v1.3.0
IsPodReady check if the pod in question is running state
func IsPodReady ¶ added in v1.3.0
IsPodReady check if the pod in question is running state
func IsPodRunning ¶ added in v1.3.0
func IsPodRunning(ctx context.Context, c client.Client, podName, namespace string) wait.ConditionFunc
IsPodRunning check if the pod in question is running state
func IsUptodate ¶ added in v1.3.2
func WaitAPIServiceReady ¶ added in v1.3.0
func WaitForDeploymentReady ¶ added in v1.3.0
Types ¶
type ErrorResponse ¶ added in v1.2.4
type GithubClient ¶ added in v1.2.4
type GithubClient struct {
// contains filtered or unexported fields
}
func NewGithubClient ¶ added in v1.2.4
func NewGithubClient(apiKey string, httpClient *http.Client) (*GithubClient, error)
func (*GithubClient) Do ¶ added in v1.2.4
func (c *GithubClient) Do(req *http.Request, v interface{}) (*ErrorResponse, error)
func (*GithubClient) DoRequest ¶ added in v1.2.4
func (c *GithubClient) DoRequest(method, path string, body, v interface{}) (*ErrorResponse, error)
func (*GithubClient) GetLatest ¶ added in v1.3.0
func (c *GithubClient) GetLatest(repo string) (string, error)
func (*GithubClient) GetTags ¶ added in v1.2.4
func (c *GithubClient) GetTags(repo string) (*Latest, *ErrorResponse, error)
func (*GithubClient) NewRequest ¶ added in v1.2.4
func (c *GithubClient) NewRequest(method, path string, body interface{}) (*http.Request, error)
type Latest ¶ added in v1.3.2
type Latest struct { URL string `json:"url"` AssetsURL string `json:"assets_url"` UploadURL string `json:"upload_url"` HTMLURL string `json:"html_url"` ID int `json:"id"` Author struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"author"` NodeID string `json:"node_id"` TagName string `json:"tag_name"` TargetCommitish string `json:"target_commitish"` Name string `json:"name"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` CreatedAt time.Time `json:"created_at"` PublishedAt time.Time `json:"published_at"` Assets []struct { URL string `json:"url"` ID int `json:"id"` NodeID string `json:"node_id"` Name string `json:"name"` Label string `json:"label"` Uploader struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"uploader"` ContentType string `json:"content_type"` State string `json:"state"` Size int `json:"size"` DownloadCount int `json:"download_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` BrowserDownloadURL string `json:"browser_download_url"` } `json:"assets"` TarballURL string `json:"tarball_url"` ZipballURL string `json:"zipball_url"` Body string `json:"body"` DiscussionURL string `json:"discussion_url"` }
Click to show internal directories.
Click to hide internal directories.