Documentation ¶
Index ¶
- type ProjectMetadata
- func (p *ProjectMetadata) Apply() (io.Reader, error)
- func (p *ProjectMetadata) Diff() (io.Reader, error)
- func (p *ProjectMetadata) Export() (io.Reader, error)
- func (p *ProjectMetadata) GetInconsistentMetadata() (io.Reader, error)
- func (p *ProjectMetadata) Parse() (io.Reader, error)
- func (p *ProjectMetadata) Reload() (io.Reader, error)
- type ProjectMetadataOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectMetadata ¶
type ProjectMetadata struct {
// contains filtered or unexported fields
}
func NewProjectMetadata ¶
func NewProjectMetadata(projectDirectory string, opts ...ProjectMetadataOption) (*ProjectMetadata, error)
func (*ProjectMetadata) Apply ¶
func (p *ProjectMetadata) Apply() (io.Reader, error)
Apply metadata from in the project and provide raw response from hge server
func (*ProjectMetadata) Diff ¶
func (p *ProjectMetadata) Diff() (io.Reader, error)
Diff will return the differences between metadata in the project (in JSON) and on the server
func (*ProjectMetadata) Export ¶ added in v2.35.0
func (p *ProjectMetadata) Export() (io.Reader, error)
Export will return the server metadata
func (*ProjectMetadata) GetInconsistentMetadata ¶
func (p *ProjectMetadata) GetInconsistentMetadata() (io.Reader, error)
GetInconsistentMetadata objects from hge server
type ProjectMetadataOption ¶
type ProjectMetadataOption func(*ProjectMetadata)
func WithAdminSecret ¶
func WithAdminSecret(adminSecret string) ProjectMetadataOption
func WithCliExtPath ¶
func WithCliExtPath(path string) ProjectMetadataOption
func WithEndpoint ¶
func WithEndpoint(endpoint string) ProjectMetadataOption
Click to show internal directories.
Click to hide internal directories.