platformhubversioncontrolsettings

package
v2.123.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	URL           string                    `json:"Url"`
	Credentials   credentials.GitCredential `json:"Credentials"`
	DefaultBranch string                    `json:"DefaultBranch"`
	BasePath      string                    `json:"BasePath"`
}

Resource represents Platform Hub version control settings

func Get

func Get(client newclient.Client) (*Resource, error)

Get returns the Platform Hub version control settings.

func NewResource

func NewResource(url string, creds credentials.GitCredential, defaultBranch string, basePath string) *Resource

NewResource creates a new Platform Hub version control settings resource

func Update

func Update(client newclient.Client, resource *Resource) (*Resource, error)

Update modifies the Platform Hub version control settings.

func (*Resource) UnmarshalJSON

func (r *Resource) UnmarshalJSON(b []byte) error

UnmarshalJSON sets the resource to its representation in JSON

Jump to

Keyboard shortcuts

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