mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-09 13:24:45 +00:00
chore: fix some function names in comment (#4769)
Signed-off-by: damuzhi0810 <rust@before.tech>
This commit is contained in:
parent
37dc9e92ae
commit
437d6a74a5
@ -93,7 +93,7 @@ func getClientOutOfCluster() (kubernetes.Interface, error) {
|
|||||||
return kubernetes.NewForConfig(config)
|
return kubernetes.NewForConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// getClient returns a k8s client set to the request from inside of cluster.
|
// getClientInsideOfCluster returns a k8s client set to the request from inside of cluster.
|
||||||
func getClientInsideOfCluster() (kubernetes.Interface, error) {
|
func getClientInsideOfCluster() (kubernetes.Interface, error) {
|
||||||
config, err := rest.InClusterConfig()
|
config, err := rest.InClusterConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -319,7 +319,7 @@ func (c *client) Pipeline(repoID, pipeline int64) (*Pipeline, error) {
|
|||||||
return out, err
|
return out, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pipeline returns the latest repository pipeline.
|
// PipelineLast returns the latest repository pipeline.
|
||||||
func (c *client) PipelineLast(repoID int64, opt PipelineLastOptions) (*Pipeline, error) {
|
func (c *client) PipelineLast(repoID int64, opt PipelineLastOptions) (*Pipeline, error) {
|
||||||
out := new(Pipeline)
|
out := new(Pipeline)
|
||||||
uri, _ := url.Parse(fmt.Sprintf(pathPipeline, c.addr, repoID, "latest"))
|
uri, _ := url.Parse(fmt.Sprintf(pathPipeline, c.addr, repoID, "latest"))
|
||||||
|
Loading…
Reference in New Issue
Block a user