-
Notifications
You must be signed in to change notification settings - Fork 9
/
getUser.go
68 lines (63 loc) · 2.04 KB
/
getUser.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package github
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to retrieve information about a GitHub user.
func GetUser(ctx *pulumi.Context, args *GetUserArgs, opts ...pulumi.InvokeOption) (*GetUserResult, error) {
var rv GetUserResult
err := ctx.Invoke("github:index/getUser:getUser", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getUser.
type GetUserArgs struct {
// The username.
Username string `pulumi:"username"`
}
// A collection of values returned by getUser.
type GetUserResult struct {
// the user's avatar URL.
AvatarUrl string `pulumi:"avatarUrl"`
// the user's bio.
Bio string `pulumi:"bio"`
// the user's blog location.
Blog string `pulumi:"blog"`
// the user's company name.
Company string `pulumi:"company"`
// the creation date.
CreatedAt string `pulumi:"createdAt"`
// the user's email.
Email string `pulumi:"email"`
// the number of followers.
Followers int `pulumi:"followers"`
// the number of following users.
Following int `pulumi:"following"`
// list of user's GPG keys.
GpgKeys []string `pulumi:"gpgKeys"`
// the user's gravatar ID.
GravatarId string `pulumi:"gravatarId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// the user's location.
Location string `pulumi:"location"`
// the user's login.
Login string `pulumi:"login"`
// the user's full name.
Name string `pulumi:"name"`
NodeId string `pulumi:"nodeId"`
// the number of public gists.
PublicGists int `pulumi:"publicGists"`
// the number of public repositories.
PublicRepos int `pulumi:"publicRepos"`
// whether the user is a GitHub admin.
SiteAdmin bool `pulumi:"siteAdmin"`
// list of user's SSH keys.
SshKeys []string `pulumi:"sshKeys"`
// the update date.
UpdatedAt string `pulumi:"updatedAt"`
Username string `pulumi:"username"`
}