platformhubversioncontrolsettings

package
v2.91.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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