Documentation
¶
Index ¶
- func Delete(client newclient.Client, id string) error
- type PlatformHubGitCredential
- func Add(client newclient.Client, platformHubGitCredential *PlatformHubGitCredential) (*PlatformHubGitCredential, error)
- func GetByID(client newclient.Client, id string) (*PlatformHubGitCredential, error)
- func NewPlatformHubGitCredential(name string, credential credentials.GitCredential) *PlatformHubGitCredential
- func Update(client newclient.Client, platformHubGitCredential *PlatformHubGitCredential) (*PlatformHubGitCredential, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.