platformhubgitcredential

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: 5 Imported by: 0

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