"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libpod/container.go" between
podman-3.2.2.tar.gz and podman-3.2.3.tar.gz

About: podman (previous name "libpod") provides a library for applications looking to use the Container Pod concept, popularized by Kubernetes. Podman manages pods, containers, container images, and container volumes.

container.go  (podman-3.2.2):container.go  (podman-3.2.3)
skipping to change at line 240 skipping to change at line 240
type ContainerImageVolume struct { type ContainerImageVolume struct {
// Source is the source of the image volume. The image can be referred // Source is the source of the image volume. The image can be referred
// to by name and by ID. // to by name and by ID.
Source string `json:"source"` Source string `json:"source"`
// Dest is the absolute path of the mount in the container. // Dest is the absolute path of the mount in the container.
Dest string `json:"dest"` Dest string `json:"dest"`
// ReadWrite sets the volume writable. // ReadWrite sets the volume writable.
ReadWrite bool `json:"rw"` ReadWrite bool `json:"rw"`
} }
// ContainerSecret is a secret that is mounted in a container
type ContainerSecret struct {
// Secret is the secret
*secrets.Secret
// UID is tbe UID of the secret file
UID uint32
// GID is the GID of the secret file
GID uint32
// Mode is the mode of the secret file
Mode uint32
}
// ContainerNetworkDescriptions describes the relationship between the CNI // ContainerNetworkDescriptions describes the relationship between the CNI
// network and the ethN where N is an integer // network and the ethN where N is an integer
type ContainerNetworkDescriptions map[string]int type ContainerNetworkDescriptions map[string]int
// Config accessors // Config accessors
// Unlocked // Unlocked
// Config returns the configuration used to create the container // Config returns the configuration used to create the container
func (c *Container) Config() *ContainerConfig { func (c *Container) Config() *ContainerConfig {
returnConfig := new(ContainerConfig) returnConfig := new(ContainerConfig)
skipping to change at line 1139 skipping to change at line 1151
func (c *Container) Timezone() string { func (c *Container) Timezone() string {
return c.config.Timezone return c.config.Timezone
} }
// Umask returns the Umask bits configured inside the container. // Umask returns the Umask bits configured inside the container.
func (c *Container) Umask() string { func (c *Container) Umask() string {
return c.config.Umask return c.config.Umask
} }
//Secrets return the secrets in the container //Secrets return the secrets in the container
func (c *Container) Secrets() []*secrets.Secret { func (c *Container) Secrets() []*ContainerSecret {
return c.config.Secrets return c.config.Secrets
} }
// Networks gets all the networks this container is connected to. // Networks gets all the networks this container is connected to.
// Please do NOT use ctr.config.Networks, as this can be changed from those // Please do NOT use ctr.config.Networks, as this can be changed from those
// values at runtime via network connect and disconnect. // values at runtime via network connect and disconnect.
// If the container is configured to use CNI and this function returns an empty // If the container is configured to use CNI and this function returns an empty
// array, the container will still be connected to the default network. // array, the container will still be connected to the default network.
// The second return parameter, a bool, indicates that the container container // The second return parameter, a bool, indicates that the container container
// is joining the default CNI network - the network name will be included in the // is joining the default CNI network - the network name will be included in the
 End of changes. 2 change blocks. 
1 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)