Documentation ¶
Index ¶
- func NewFakeGHSourceClient(ghSourceParams *types.GHSourceParams, ghSource *v1alpha1.GitHubSource) types.GHSourceClient
- func NewFakeGHSourceParams() *types.GHSourceParams
- func NewGHSourceClient(ghSourceParams *types.GHSourceParams, restConfig *rest.Config, ...) types.GHSourceClient
- type GitHubSourceBuilder
- func (b *GitHubSourceBuilder) APIURL(apiURL string) *GitHubSourceBuilder
- func (b *GitHubSourceBuilder) AccessToken(accessToken string) *GitHubSourceBuilder
- func (b *GitHubSourceBuilder) Build() *v1alpha1.GitHubSource
- func (b *GitHubSourceBuilder) OrgRepo(org, repo string) *GitHubSourceBuilder
- func (b *GitHubSourceBuilder) SecretToken(secretToken string) *GitHubSourceBuilder
- func (b *GitHubSourceBuilder) Sink(sink *duckv1.Destination) *GitHubSourceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeGHSourceClient ¶ added in v0.4.0
func NewFakeGHSourceClient(ghSourceParams *types.GHSourceParams, ghSource *v1alpha1.GitHubSource) types.GHSourceClient
func NewFakeGHSourceParams ¶ added in v0.4.0
func NewFakeGHSourceParams() *types.GHSourceParams
func NewGHSourceClient ¶ added in v0.2.0
func NewGHSourceClient(ghSourceParams *types.GHSourceParams, restConfig *rest.Config, namespace string) types.GHSourceClient
Types ¶
type GitHubSourceBuilder ¶ added in v0.2.0
type GitHubSourceBuilder struct {
// contains filtered or unexported fields
}
GitHubSourceBuilder is for building the source
func NewGitHubSourceBuilder ¶ added in v0.2.0
func NewGitHubSourceBuilder(name string) *GitHubSourceBuilder
NewGitHubSourceBuilder for building ApiServer source object
func (*GitHubSourceBuilder) APIURL ¶ added in v0.3.0
func (b *GitHubSourceBuilder) APIURL(apiURL string) *GitHubSourceBuilder
APIURL to set the value of the GitHub APIURL
func (*GitHubSourceBuilder) AccessToken ¶ added in v0.3.0
func (b *GitHubSourceBuilder) AccessToken(accessToken string) *GitHubSourceBuilder
AccessToken the access-token to use for this GitHub source
func (*GitHubSourceBuilder) Build ¶ added in v0.2.0
func (b *GitHubSourceBuilder) Build() *v1alpha1.GitHubSource
Build the GitHubSource object
func (*GitHubSourceBuilder) OrgRepo ¶ added in v0.3.0
func (b *GitHubSourceBuilder) OrgRepo(org, repo string) *GitHubSourceBuilder
OrgRepo sets the org/owner and repository
func (*GitHubSourceBuilder) SecretToken ¶ added in v0.3.0
func (b *GitHubSourceBuilder) SecretToken(secretToken string) *GitHubSourceBuilder
SecretToken the secret-token to use for this GitHub source
func (*GitHubSourceBuilder) Sink ¶ added in v0.2.0
func (b *GitHubSourceBuilder) Sink(sink *duckv1.Destination) *GitHubSourceBuilder
Sink or destination of the source
Click to show internal directories.
Click to hide internal directories.