Documentation ¶
Index ¶
- Constants
- Variables
- func CancelContext()
- func ConnectionIdentity() string
- func ConnectionIsSet() bool
- func ConnectionName() string
- func ConnectionURI() string
- func GetConnection() (context.Context, error)
- func SetConnection(connection Connection)
- func SetConnectionStatus(status ConnStatus)
- func UnsetConnection()
- type ConnStatus
- type Connection
Constants ¶
View Source
const ( ConnectionStatusDisconnected = 0 + iota ConnectionStatusConnected ConnectionStatusConnectionError )
Connection status.
Variables ¶
View Source
var ErrConnectionNotSelected = errors.New("system connection not selected")
ErrConnectionNotSelected implements connection is not selected error.
Functions ¶
func ConnectionIdentity ¶
func ConnectionIdentity() string
ConnectionIdentity returns selected connection identity.
func ConnectionIsSet ¶
func ConnectionIsSet() bool
ConnectionIsSet returns true if connection is set.
func GetConnection ¶
GetConnection returns connection to podman socket.
func SetConnection ¶
func SetConnection(connection Connection)
SetConnection sets registry connection.
func SetConnectionStatus ¶
func SetConnectionStatus(status ConnStatus)
SetConnectionStatus sets registry Connection status.
func UnsetConnection ¶
func UnsetConnection()
UnsetConnection unsets the registry loaded connection.
Types ¶
type ConnStatus ¶
type ConnStatus int
ConnStatus implements Connection status.
func ConnectionStatus ¶
func ConnectionStatus() ConnStatus
ConnectionStatus returns selected connection status.
func (ConnStatus) String ¶
func (connStatus ConnStatus) String() string
type Connection ¶
type Connection struct { Name string Default bool Status ConnStatus URI string Identity string }
Connection implements a system connection.
Click to show internal directories.
Click to hide internal directories.