mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
chore(actions): use latest Go version
This commit is contained in:
committed by
Łukasz Mierzwa
parent
37ea0884f0
commit
7ca315a7aa
@@ -15,7 +15,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Mock web assets
|
||||
run: make mock-assets
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Run go mod tidy
|
||||
run: |
|
||||
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Cache Go modules
|
||||
id: cache-go-modules
|
||||
@@ -69,7 +69,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Cache Go modules
|
||||
id: cache-go-modules
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Format Go code
|
||||
run: make format-go
|
||||
@@ -302,7 +302,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Cache Go
|
||||
uses: actions/cache@v3
|
||||
@@ -408,7 +408,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.5
|
||||
go-version: 1.19.0
|
||||
|
||||
- name: Cache Go
|
||||
uses: actions/cache@v3
|
||||
|
||||
@@ -38,7 +38,7 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
GetAlerts Get a list of alerts
|
||||
GetAlerts Get a list of alerts
|
||||
*/
|
||||
func (a *Client) GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@@ -76,7 +76,7 @@ func (a *Client) GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetA
|
||||
}
|
||||
|
||||
/*
|
||||
PostAlerts Create new Alerts
|
||||
PostAlerts Create new Alerts
|
||||
*/
|
||||
func (a *Client) PostAlerts(params *PostAlertsParams, opts ...ClientOption) (*PostAlertsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
||||
@@ -53,10 +53,12 @@ func NewGetAlertsParamsWithHTTPClient(client *http.Client) *GetAlertsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetAlertsParams contains all the parameters to send to the API endpoint
|
||||
for the get alerts operation.
|
||||
/*
|
||||
GetAlertsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get alerts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAlertsParams struct {
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ func NewGetAlertsOK() *GetAlertsOK {
|
||||
return &GetAlertsOK{}
|
||||
}
|
||||
|
||||
/* GetAlertsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAlertsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get alerts response
|
||||
*/
|
||||
@@ -81,7 +82,8 @@ func NewGetAlertsBadRequest() *GetAlertsBadRequest {
|
||||
return &GetAlertsBadRequest{}
|
||||
}
|
||||
|
||||
/* GetAlertsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
GetAlertsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Bad request
|
||||
*/
|
||||
@@ -111,7 +113,8 @@ func NewGetAlertsInternalServerError() *GetAlertsInternalServerError {
|
||||
return &GetAlertsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAlertsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAlertsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -54,10 +54,12 @@ func NewPostAlertsParamsWithHTTPClient(client *http.Client) *PostAlertsParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* PostAlertsParams contains all the parameters to send to the API endpoint
|
||||
for the post alerts operation.
|
||||
/*
|
||||
PostAlertsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post alerts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostAlertsParams struct {
|
||||
|
||||
|
||||
@@ -49,7 +49,8 @@ func NewPostAlertsOK() *PostAlertsOK {
|
||||
return &PostAlertsOK{}
|
||||
}
|
||||
|
||||
/* PostAlertsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostAlertsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Create alerts response
|
||||
*/
|
||||
@@ -70,7 +71,8 @@ func NewPostAlertsBadRequest() *PostAlertsBadRequest {
|
||||
return &PostAlertsBadRequest{}
|
||||
}
|
||||
|
||||
/* PostAlertsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PostAlertsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Bad request
|
||||
*/
|
||||
@@ -100,7 +102,8 @@ func NewPostAlertsInternalServerError() *PostAlertsInternalServerError {
|
||||
return &PostAlertsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostAlertsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PostAlertsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
GetAlertGroups Get a list of alert groups
|
||||
GetAlertGroups Get a list of alert groups
|
||||
*/
|
||||
func (a *Client) GetAlertGroups(params *GetAlertGroupsParams, opts ...ClientOption) (*GetAlertGroupsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
||||
@@ -53,10 +53,12 @@ func NewGetAlertGroupsParamsWithHTTPClient(client *http.Client) *GetAlertGroupsP
|
||||
}
|
||||
}
|
||||
|
||||
/* GetAlertGroupsParams contains all the parameters to send to the API endpoint
|
||||
for the get alert groups operation.
|
||||
/*
|
||||
GetAlertGroupsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get alert groups operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAlertGroupsParams struct {
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ func NewGetAlertGroupsOK() *GetAlertGroupsOK {
|
||||
return &GetAlertGroupsOK{}
|
||||
}
|
||||
|
||||
/* GetAlertGroupsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAlertGroupsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get alert groups response
|
||||
*/
|
||||
@@ -81,7 +82,8 @@ func NewGetAlertGroupsBadRequest() *GetAlertGroupsBadRequest {
|
||||
return &GetAlertGroupsBadRequest{}
|
||||
}
|
||||
|
||||
/* GetAlertGroupsBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
GetAlertGroupsBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Bad request
|
||||
*/
|
||||
@@ -111,7 +113,8 @@ func NewGetAlertGroupsInternalServerError() *GetAlertGroupsInternalServerError {
|
||||
return &GetAlertGroupsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAlertGroupsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAlertGroupsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
GetStatus Get current status of an Alertmanager instance and its cluster
|
||||
GetStatus Get current status of an Alertmanager instance and its cluster
|
||||
*/
|
||||
func (a *Client) GetStatus(params *GetStatusParams, opts ...ClientOption) (*GetStatusOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
||||
@@ -52,10 +52,12 @@ func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetStatusParams contains all the parameters to send to the API endpoint
|
||||
for the get status operation.
|
||||
/*
|
||||
GetStatusParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get status operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetStatusParams struct {
|
||||
timeout time.Duration
|
||||
|
||||
@@ -39,7 +39,8 @@ func NewGetStatusOK() *GetStatusOK {
|
||||
return &GetStatusOK{}
|
||||
}
|
||||
|
||||
/* GetStatusOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetStatusOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get status response
|
||||
*/
|
||||
|
||||
@@ -52,10 +52,12 @@ func NewGetReceiversParamsWithHTTPClient(client *http.Client) *GetReceiversParam
|
||||
}
|
||||
}
|
||||
|
||||
/* GetReceiversParams contains all the parameters to send to the API endpoint
|
||||
for the get receivers operation.
|
||||
/*
|
||||
GetReceiversParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get receivers operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetReceiversParams struct {
|
||||
timeout time.Duration
|
||||
|
||||
@@ -39,7 +39,8 @@ func NewGetReceiversOK() *GetReceiversOK {
|
||||
return &GetReceiversOK{}
|
||||
}
|
||||
|
||||
/* GetReceiversOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetReceiversOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get receivers response
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
GetReceivers Get list of all receivers (name of notification integrations)
|
||||
GetReceivers Get list of all receivers (name of notification integrations)
|
||||
*/
|
||||
func (a *Client) GetReceivers(params *GetReceiversParams, opts ...ClientOption) (*GetReceiversOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
||||
@@ -52,10 +52,12 @@ func NewDeleteSilenceParamsWithHTTPClient(client *http.Client) *DeleteSilencePar
|
||||
}
|
||||
}
|
||||
|
||||
/* DeleteSilenceParams contains all the parameters to send to the API endpoint
|
||||
for the delete silence operation.
|
||||
/*
|
||||
DeleteSilenceParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete silence operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteSilenceParams struct {
|
||||
|
||||
|
||||
@@ -43,7 +43,8 @@ func NewDeleteSilenceOK() *DeleteSilenceOK {
|
||||
return &DeleteSilenceOK{}
|
||||
}
|
||||
|
||||
/* DeleteSilenceOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteSilenceOK describes a response with status code 200, with default header values.
|
||||
|
||||
Delete silence response
|
||||
*/
|
||||
@@ -64,7 +65,8 @@ func NewDeleteSilenceInternalServerError() *DeleteSilenceInternalServerError {
|
||||
return &DeleteSilenceInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteSilenceInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteSilenceInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -52,10 +52,12 @@ func NewGetSilenceParamsWithHTTPClient(client *http.Client) *GetSilenceParams {
|
||||
}
|
||||
}
|
||||
|
||||
/* GetSilenceParams contains all the parameters to send to the API endpoint
|
||||
for the get silence operation.
|
||||
/*
|
||||
GetSilenceParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get silence operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetSilenceParams struct {
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ func NewGetSilenceOK() *GetSilenceOK {
|
||||
return &GetSilenceOK{}
|
||||
}
|
||||
|
||||
/* GetSilenceOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetSilenceOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get silence response
|
||||
*/
|
||||
@@ -83,7 +84,8 @@ func NewGetSilenceNotFound() *GetSilenceNotFound {
|
||||
return &GetSilenceNotFound{}
|
||||
}
|
||||
|
||||
/* GetSilenceNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetSilenceNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
A silence with the specified ID was not found
|
||||
*/
|
||||
@@ -104,7 +106,8 @@ func NewGetSilenceInternalServerError() *GetSilenceInternalServerError {
|
||||
return &GetSilenceInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetSilenceInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetSilenceInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -53,10 +53,12 @@ func NewGetSilencesParamsWithHTTPClient(client *http.Client) *GetSilencesParams
|
||||
}
|
||||
}
|
||||
|
||||
/* GetSilencesParams contains all the parameters to send to the API endpoint
|
||||
for the get silences operation.
|
||||
/*
|
||||
GetSilencesParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get silences operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetSilencesParams struct {
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ func NewGetSilencesOK() *GetSilencesOK {
|
||||
return &GetSilencesOK{}
|
||||
}
|
||||
|
||||
/* GetSilencesOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetSilencesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Get silences response
|
||||
*/
|
||||
@@ -75,7 +76,8 @@ func NewGetSilencesInternalServerError() *GetSilencesInternalServerError {
|
||||
return &GetSilencesInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetSilencesInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetSilencesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Internal server error
|
||||
*/
|
||||
|
||||
@@ -54,10 +54,12 @@ func NewPostSilencesParamsWithHTTPClient(client *http.Client) *PostSilencesParam
|
||||
}
|
||||
}
|
||||
|
||||
/* PostSilencesParams contains all the parameters to send to the API endpoint
|
||||
for the post silences operation.
|
||||
/*
|
||||
PostSilencesParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post silences operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostSilencesParams struct {
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ func NewPostSilencesOK() *PostSilencesOK {
|
||||
return &PostSilencesOK{}
|
||||
}
|
||||
|
||||
/* PostSilencesOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostSilencesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Create / update silence response
|
||||
*/
|
||||
@@ -83,7 +84,8 @@ func NewPostSilencesBadRequest() *PostSilencesBadRequest {
|
||||
return &PostSilencesBadRequest{}
|
||||
}
|
||||
|
||||
/* PostSilencesBadRequest describes a response with status code 400, with default header values.
|
||||
/*
|
||||
PostSilencesBadRequest describes a response with status code 400, with default header values.
|
||||
|
||||
Bad request
|
||||
*/
|
||||
@@ -113,7 +115,8 @@ func NewPostSilencesNotFound() *PostSilencesNotFound {
|
||||
return &PostSilencesNotFound{}
|
||||
}
|
||||
|
||||
/* PostSilencesNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PostSilencesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
A silence with the specified ID was not found
|
||||
*/
|
||||
@@ -138,7 +141,8 @@ func (o *PostSilencesNotFound) readResponse(response runtime.ClientResponse, con
|
||||
return nil
|
||||
}
|
||||
|
||||
/*PostSilencesOKBody post silences o k body
|
||||
/*
|
||||
PostSilencesOKBody post silences o k body
|
||||
swagger:model PostSilencesOKBody
|
||||
*/
|
||||
type PostSilencesOKBody struct {
|
||||
|
||||
@@ -42,7 +42,7 @@ type ClientService interface {
|
||||
}
|
||||
|
||||
/*
|
||||
DeleteSilence Delete a silence by its ID
|
||||
DeleteSilence Delete a silence by its ID
|
||||
*/
|
||||
func (a *Client) DeleteSilence(params *DeleteSilenceParams, opts ...ClientOption) (*DeleteSilenceOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@@ -80,7 +80,7 @@ func (a *Client) DeleteSilence(params *DeleteSilenceParams, opts ...ClientOption
|
||||
}
|
||||
|
||||
/*
|
||||
GetSilence Get a silence by its ID
|
||||
GetSilence Get a silence by its ID
|
||||
*/
|
||||
func (a *Client) GetSilence(params *GetSilenceParams, opts ...ClientOption) (*GetSilenceOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@@ -118,7 +118,7 @@ func (a *Client) GetSilence(params *GetSilenceParams, opts ...ClientOption) (*Ge
|
||||
}
|
||||
|
||||
/*
|
||||
GetSilences Get a list of silences
|
||||
GetSilences Get a list of silences
|
||||
*/
|
||||
func (a *Client) GetSilences(params *GetSilencesParams, opts ...ClientOption) (*GetSilencesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
@@ -156,7 +156,7 @@ func (a *Client) GetSilences(params *GetSilencesParams, opts ...ClientOption) (*
|
||||
}
|
||||
|
||||
/*
|
||||
PostSilences Post a new silence or update an existing one
|
||||
PostSilences Post a new silence or update an existing one
|
||||
*/
|
||||
func (a *Client) PostSilences(params *PostSilencesParams, opts ...ClientOption) (*PostSilencesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
||||
@@ -119,9 +119,9 @@ func (ls Labels) Set(name, value string) Labels {
|
||||
|
||||
// Alert is vanilla alert + some additional attributes
|
||||
// karma extends an alert object with:
|
||||
// * Links map, it's generated from annotations if annotation value is an url
|
||||
// it's pulled out of annotation map and returned under links field,
|
||||
// karma UI used this to show links differently than other annotations
|
||||
// - Links map, it's generated from annotations if annotation value is an url
|
||||
// it's pulled out of annotation map and returned under links field,
|
||||
// karma UI used this to show links differently than other annotations
|
||||
type Alert struct {
|
||||
Annotations Annotations `json:"annotations"`
|
||||
Labels Labels `json:"labels"`
|
||||
|
||||
Reference in New Issue
Block a user