platformhubgitcredential

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: 5 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

func Delete

func Delete(client newclient.Client, id string) error

Delete removes a Platform Hub git credential with the specified ID.

Types

type PlatformHubGitCredential

type PlatformHubGitCredential struct {
	Description            string                              `json:"Description,omitempty"`
	Details                credentials.GitCredential           `json:"Details"`
	Name                   string                              `json:"Name"`
	RepositoryRestrictions *credentials.RepositoryRestrictions `json:"RepositoryRestrictions"`
	resources.Resource
}

PlatformHubGitCredential represents a Platform Hub git credential resource.

func Add

func Add(client newclient.Client, platformHubGitCredential *PlatformHubGitCredential) (*PlatformHubGitCredential, error)

Add creates a new Platform Hub git credential.

func GetByID

func GetByID(client newclient.Client, id string) (*PlatformHubGitCredential, error)

GetByID returns the Platform Hub git credential that matches the input ID.

func NewPlatformHubGitCredential

func NewPlatformHubGitCredential(name string, credential credentials.GitCredential) *PlatformHubGitCredential

NewPlatformHubGitCredential creates and initializes a Platform Hub git credential resource.

func Update

func Update(client newclient.Client, platformHubGitCredential *PlatformHubGitCredential) (*PlatformHubGitCredential, error)

Update modifies a Platform Hub git credential.

func (*PlatformHubGitCredential) GetName

func (r *PlatformHubGitCredential) GetName() string

GetName returns the name of the resource.

func (*PlatformHubGitCredential) SetName

func (r *PlatformHubGitCredential) SetName(name string)

SetName sets the name of the resource.

func (*PlatformHubGitCredential) UnmarshalJSON

func (r *PlatformHubGitCredential) 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