Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDockerSecrets ¶
func CreateDockerSecrets(client kubernetes.Interface, namespace string, auths config.DockerAuths) (*v1.Secret, error)
Types ¶
type CopyFileSpec ¶
type CopyOptions ¶
type CopyOptions struct { Namespace string Container string MaxTries int ClientConfig *restclient.Config Clientset kubernetes.Interface // contains filtered or unexported fields }
CopyOptions have the data required to perform the copy operation
func NewCopyOptions ¶
func NewCopyOptions( logger mlog.Logger, clientConfig *restclient.Config, clientset kubernetes.Interface, maxTries int, errOut io.Writer, ) *CopyOptions
NewCopyOptions creates the options for copy
func (*CopyOptions) CopyFromPod ¶
func (o *CopyOptions) CopyFromPod(ctx context.Context, src CopyFileSpec, destFile uploader.File) error
type DockerConfig ¶
type DockerConfig map[string]DockerConfigEntry
type DockerConfigEntry ¶
type DockerConfigJSON ¶
type DockerConfigJSON struct { Auths DockerConfig `json:"auths"` HttpHeaders map[string]string `json:"HttpHeaders,omitempty"` }
func DecodeDockerConfigJSON ¶
func DecodeDockerConfigJSON(data []byte) (res DockerConfigJSON, err error)
type RemotePath ¶
type RemotePath struct {
// contains filtered or unexported fields
}
RemotePath represents always UNIX path, its methods will use path package which is always using `/`
func NewRemotePath ¶
func NewRemotePath(fileName string) RemotePath
func (RemotePath) String ¶
func (p RemotePath) String() string
Click to show internal directories.
Click to hide internal directories.