|
|
|
|
@ -255,7 +255,7 @@ func (c *Client) Login(host string, options ...LoginOption) error {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fmt.Fprintln(c.out, "Login Succeeded")
|
|
|
|
|
_, _ = fmt.Fprintln(c.out, "Login Succeeded")
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -383,7 +383,7 @@ func (c *Client) Logout(host string, opts ...LogoutOption) error {
|
|
|
|
|
if err := credentials.Logout(context.Background(), c.credentialsStore, host); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
fmt.Fprintf(c.out, "Removing login credentials for %s\n", host)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Removing login credentials for %s\n", host)
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -453,7 +453,7 @@ func (c *Client) processChartPull(genericResult *GenericPullResult, operation *p
|
|
|
|
|
provDescriptor = &d
|
|
|
|
|
case LegacyChartLayerMediaType:
|
|
|
|
|
chartDescriptor = &d
|
|
|
|
|
fmt.Fprintf(c.out, "Warning: chart media type %s is deprecated\n", LegacyChartLayerMediaType)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Warning: chart media type %s is deprecated\n", LegacyChartLayerMediaType)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -526,12 +526,12 @@ func (c *Client) processChartPull(genericResult *GenericPullResult, operation *p
|
|
|
|
|
result.Prov.Size = provDescriptor.Size
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fmt.Fprintf(c.out, "Pulled: %s\n", result.Ref)
|
|
|
|
|
fmt.Fprintf(c.out, "Digest: %s\n", result.Manifest.Digest)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Pulled: %s\n", result.Ref)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Digest: %s\n", result.Manifest.Digest)
|
|
|
|
|
|
|
|
|
|
if strings.Contains(result.Ref, "_") {
|
|
|
|
|
fmt.Fprintf(c.out, "%s contains an underscore.\n", result.Ref)
|
|
|
|
|
fmt.Fprint(c.out, registryUnderscoreMessage+"\n")
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "%s contains an underscore.\n", result.Ref)
|
|
|
|
|
_, _ = fmt.Fprint(c.out, registryUnderscoreMessage+"\n")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result, nil
|
|
|
|
|
@ -728,11 +728,11 @@ func (c *Client) Push(data []byte, ref string, options ...PushOption) (*PushResu
|
|
|
|
|
Size: provDescriptor.Size,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fmt.Fprintf(c.out, "Pushed: %s\n", result.Ref)
|
|
|
|
|
fmt.Fprintf(c.out, "Digest: %s\n", result.Manifest.Digest)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Pushed: %s\n", result.Ref)
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "Digest: %s\n", result.Manifest.Digest)
|
|
|
|
|
if strings.Contains(parsedRef.orasReference.Reference, "_") {
|
|
|
|
|
fmt.Fprintf(c.out, "%s contains an underscore.\n", result.Ref)
|
|
|
|
|
fmt.Fprint(c.out, registryUnderscoreMessage+"\n")
|
|
|
|
|
_, _ = fmt.Fprintf(c.out, "%s contains an underscore.\n", result.Ref)
|
|
|
|
|
_, _ = fmt.Fprint(c.out, registryUnderscoreMessage+"\n")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result, err
|
|
|
|
|
|