metadata

package
v2.39.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func (*ProjectMetadata) Parse

func (p *ProjectMetadata) Parse() (io.Reader, error)

Parse metadata in project as JSON

func (*ProjectMetadata) Reload

func (p *ProjectMetadata) Reload() (io.Reader, error)

Reload metadata on hge server and provides raw response 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL