mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
chore: fix function name in comment
Signed-off-by: largemouth <largemouth@aliyun.com>
This commit is contained in:
parent
cea4c0d419
commit
4ce13640cd
@ -123,7 +123,7 @@ func (p *ProviderScaleway) Extract() ([]byte, error) {
|
|||||||
return userData, nil
|
return userData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// exctractInformation returns the extracted information given as parameter from the metadata
|
// extractInformation returns the extracted information given as parameter from the metadata
|
||||||
func (p *ProviderScaleway) extractInformation(metadata []byte, information string) ([]byte, error) {
|
func (p *ProviderScaleway) extractInformation(metadata []byte, information string) ([]byte, error) {
|
||||||
query := strings.ToUpper(information) + "="
|
query := strings.ToUpper(information) + "="
|
||||||
for _, line := range bytes.Split(metadata, []byte("\n")) {
|
for _, line := range bytes.Split(metadata, []byte("\n")) {
|
||||||
|
@ -193,7 +193,7 @@ func (dr *dockerRunnerImpl) versionCheck(version string) (string, string, error)
|
|||||||
return clientVersionString, serverVersionString, nil
|
return clientVersionString, serverVersionString, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// contextCheck checks if contexts are supported. This is necessary because github uses some strange versions
|
// contextSupportCheck checks if contexts are supported. This is necessary because github uses some strange versions
|
||||||
// of docker in Actions, which makes it difficult to tell if context is supported.
|
// of docker in Actions, which makes it difficult to tell if context is supported.
|
||||||
// See https://github.community/t/what-really-is-docker-3-0-6/16171
|
// See https://github.community/t/what-really-is-docker-3-0-6/16171
|
||||||
func (dr *dockerRunnerImpl) contextSupportCheck() error {
|
func (dr *dockerRunnerImpl) contextSupportCheck() error {
|
||||||
|
@ -55,7 +55,7 @@ type PkglibConfig struct {
|
|||||||
Tag string // Tag is a text/template string, defaults to {{.Hash}}
|
Tag string // Tag is a text/template string, defaults to {{.Hash}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPkInfo returns a new pkgInfo with default values
|
// NewPkgInfo returns a new pkgInfo with default values
|
||||||
func NewPkgInfo() pkgInfo {
|
func NewPkgInfo() pkgInfo {
|
||||||
return pkgInfo{
|
return pkgInfo{
|
||||||
Org: "linuxkit",
|
Org: "linuxkit",
|
||||||
|
Loading…
Reference in New Issue
Block a user