metadata

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata defines a struct for storing app metadata Example of what ^^^ map looks like:

 {
	"pivot-dlohle": { // org
		"playground": { // space
			"HOSSEINS-APP": "2021-06-22T20:18:36Z", // app_name : last_updated_timestamp
			"java-app-test": "2021-06-22T21:16:44Z",
			"my-favorite-app": "2021-06-22T20:18:36Z",
			"pm": "2021-06-22T20:18:36Z",
			"test-nopush": "2021-06-22T20:18:36Z",
			"timeout-app-test": "2021-06-22T20:18:37Z"
		}
	}
}

func NewMetadata

func NewMetadata() *Metadata

NewMetadata creates a new initialized metadata instance

func (*Metadata) HasBeenUpdated

func (m *Metadata) HasBeenUpdated(app cfclient.App, space cfclient.Space, org cfclient.Org) bool

func (*Metadata) HasNewerLocally

func (m *Metadata) HasNewerLocally(app cfclient.App, space cfclient.Space, org cfclient.Org) bool

func (*Metadata) LoadMetadata

func (m *Metadata) LoadMetadata(data io.Reader) error

func (*Metadata) RecordUpdate

func (m *Metadata) RecordUpdate(app cfclient.App, space cfclient.Space, org cfclient.Org) error

func (*Metadata) SaveMetadata

func (m *Metadata) SaveMetadata(data io.Writer) error

Jump to

Keyboard shortcuts

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