Documentation ¶
Index ¶
- Constants
- type AddRepositoryRepositoriesRequest
- type ChangeRepositoryRepositoriesRequest
- type ChangelogRequest
- type Client
- func (c *Client) AddRepositoryRepositories(ctx context.Context, req AddRepositoryRepositoriesRequest) error
- func (c *Client) ChangeRepositoryRepositories(ctx context.Context, req ChangeRepositoryRepositoriesRequest) error
- func (c *Client) Changelog(ctx context.Context, req ChangelogRequest) (string, error)
- func (c *Client) Index(ctx context.Context, req IndexRequest) ([]IndexResponse, error)
- func (c *Client) ListUpdatesUpdate(ctx context.Context, req ListUpdatesUpdateRequest) ([]map[string]interface{}, error)
- func (c *Client) Repositories(ctx context.Context, req RepositoriesRequest) (RepositoriesResponse, error)
- func (c *Client) UpdateDatabase(ctx context.Context, req UpdateDatabaseRequest) (string, error)
- func (c *Client) Versions(ctx context.Context, req VersionsRequest) ([]map[string]interface{}, error)
- type Errors
- type Files
- type FilesFileType
- type HTTPClient
- type IndexRequest
- type IndexResponse
- type Infos
- type ListUpdatesUpdateRequest
- type Options
- type Repositories
- type RepositoriesFiletype
- type RepositoriesRequest
- type RepositoriesResponse
- type StandardRepos
- type UpdateDatabaseRequest
- type VersionsRequest
Constants ¶
View Source
const ( FilesFileType_LIST FilesFileType = "list" FilesFileType_SOURCES FilesFileType = "sources" RepositoriesFiletype_LIST RepositoriesFiletype = "list" RepositoriesFiletype_SOURCES RepositoriesFiletype = "sources" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRepositoryRepositoriesRequest ¶
type AddRepositoryRepositoriesRequest struct { Handle string `url:"handle" json:"handle"` // Handle that identifies a repository. Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Digest to detect modifications. }
type ChangeRepositoryRepositoriesRequest ¶
type ChangeRepositoryRepositoriesRequest struct { Index int `url:"index" json:"index"` // Index within the file (starting from 0). Node string `url:"node" json:"node"` // The cluster node name. Path string `url:"path" json:"path"` // Path to the containing file. // The following parameters are optional Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Digest to detect modifications. Enabled *util.PVEBool `url:"enabled,omitempty" json:"enabled,omitempty"` // Whether the repository should be enabled or not. }
type ChangelogRequest ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) AddRepositoryRepositories ¶
func (c *Client) AddRepositoryRepositories(ctx context.Context, req AddRepositoryRepositoriesRequest) error
AddRepositoryRepositories Add a standard repository to the configuration
func (*Client) ChangeRepositoryRepositories ¶
func (c *Client) ChangeRepositoryRepositories(ctx context.Context, req ChangeRepositoryRepositoriesRequest) error
ChangeRepositoryRepositories Change the properties of a repository. Currently only allows enabling/disabling.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req IndexRequest) ([]IndexResponse, error)
Index Directory index for apt (Advanced Package Tool).
func (*Client) ListUpdatesUpdate ¶
func (c *Client) ListUpdatesUpdate(ctx context.Context, req ListUpdatesUpdateRequest) ([]map[string]interface{}, error)
ListUpdatesUpdate List available updates.
func (*Client) Repositories ¶
func (c *Client) Repositories(ctx context.Context, req RepositoriesRequest) (RepositoriesResponse, error)
Repositories Get APT repository information.
func (*Client) UpdateDatabase ¶ added in v0.0.15
UpdateDatabase This is used to resynchronize the package index files from their sources (apt-get update).
type Files ¶ added in v0.0.10
type Files struct { Digest []int `url:"digest" json:"digest"` // Digest of the file as bytes. FileType FilesFileType `url:"file-type" json:"file-type"` // Format of the file. Path string `url:"path" json:"path"` // Path to the problematic file. Repositories []Repositories `url:"repositories" json:"repositories"` // The parsed repositories. }
type FilesFileType ¶ added in v0.0.15
type FilesFileType string
func PtrFilesFileType ¶ added in v0.0.15
func PtrFilesFileType(i FilesFileType) *FilesFileType
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type IndexResponse ¶
type IndexResponse struct {
Id string `url:"id" json:"id"`
}
type Infos ¶ added in v0.0.10
type Infos struct { Index string `url:"index" json:"index"` // Index of the associated repository within the file. Kind string `url:"kind" json:"kind"` // Kind of the information (e.g. warning). Message string `url:"message" json:"message"` // Information message. Path string `url:"path" json:"path"` // Path to the associated file. // The following parameters are optional Property *string `url:"property,omitempty" json:"property,omitempty"` // Property from which the info originates. }
type ListUpdatesUpdateRequest ¶
type ListUpdatesUpdateRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type Repositories ¶ added in v0.0.10
type Repositories struct { Enabled util.PVEBool `url:"Enabled" json:"Enabled"` // Whether the repository is enabled or not Filetype RepositoriesFiletype `url:"FileType" json:"FileType"` // Format of the defining file. Suites []string `url:"Suites" json:"Suites"` // List of package distribuitions Types []string `url:"Types" json:"Types"` // List of package types. Uris []string `url:"URIs" json:"URIs"` // List of repository URIs. // The following parameters are optional Comment *string `url:"Comment,omitempty" json:"Comment,omitempty"` // Associated comment Components *[]string `url:"Components,omitempty" json:"Components,omitempty"` // List of repository components Options *[]Options `url:"Options,omitempty" json:"Options,omitempty"` // Additional options }
type RepositoriesFiletype ¶ added in v0.0.15
type RepositoriesFiletype string
func PtrRepositoriesFiletype ¶ added in v0.0.15
func PtrRepositoriesFiletype(i RepositoriesFiletype) *RepositoriesFiletype
type RepositoriesRequest ¶
type RepositoriesRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type RepositoriesResponse ¶
type RepositoriesResponse struct { Digest string `url:"digest" json:"digest"` // Common digest of all files. Errors []Errors `url:"errors" json:"errors"` // List of problematic repository files. Files []Files `url:"files" json:"files"` // List of parsed repository files. Infos []Infos `url:"infos" json:"infos"` // Additional information/warnings for APT repositories. StandardRepos []StandardRepos `url:"standard-repos" json:"standard-repos"` // List of standard repositories and their configuration status }
Result from parsing the APT repository files in /etc/apt/.
type StandardRepos ¶ added in v0.0.10
type StandardRepos struct { Handle string `url:"handle" json:"handle"` // Handle to identify the repository. Name string `url:"name" json:"name"` // Full name of the repository. // The following parameters are optional Status *util.PVEBool `url:"status,omitempty" json:"status,omitempty"` // Indicating enabled/disabled status, if the repository is configured. }
type UpdateDatabaseRequest ¶ added in v0.0.15
type UpdateDatabaseRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Notify *util.PVEBool `url:"notify,omitempty" json:"notify,omitempty"` // Send notification mail about new packages (to email address specified for user 'root@pam'). Quiet *util.PVEBool `url:"quiet,omitempty" json:"quiet,omitempty"` // Only produces output suitable for logging, omitting progress indicators. }
type VersionsRequest ¶
type VersionsRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
Click to show internal directories.
Click to hide internal directories.