Documentation
¶
Overview ¶
Copyright 2025 The OpenAgent Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Owner string `xorm:"varchar(100) notnull pk" json:"owner"`
Name string `xorm:"varchar(100) notnull pk" json:"name"`
DisplayName string `xorm:"varchar(100)" json:"displayName"`
Provider string `xorm:"varchar(100)" json:"provider"`
CreatedTime string `xorm:"varchar(100)" json:"createdTime"`
Image string `xorm:"varchar(100)" json:"image"`
ImageId string `xorm:"varchar(100)" json:"imageId"`
Command string `xorm:"varchar(100)" json:"command"`
SizeRw int64 `xorm:"varchar(100)" json:"sizeRw,omitempty"`
SizeRootFs int64 `xorm:"varchar(100)" json:"sizeRootFs,omitempty"`
Labels map[string]string
State string `xorm:"varchar(100)" json:"state"`
Status string `xorm:"varchar(100)" json:"status"`
Ports string `xorm:"varchar(100)" json:"ports"`
HostConfig struct {
NetworkMode string `json:",omitempty"`
Annotations map[string]string `json:",omitempty"`
}
}
type ContainerClient ¶
func NewContainerClient ¶
func NewContainerClient(username string, hostname string, region string) (ContainerClient, error)
Docker remote access service needs to be enabled and configured in advance.
func (ContainerClient) GetContainer ¶
func (client ContainerClient) GetContainer(name string, lang string) (*Container, error)
func (ContainerClient) GetContainers ¶
func (client ContainerClient) GetContainers() ([]*Container, error)
func (ContainerClient) UpdateContainerState ¶
Click to show internal directories.
Click to hide internal directories.