Documentation ¶
Index ¶
- func IsAuthenticationError(err error) bool
- func NewAuthCheckerBuilder(host string) mobile.AuthCheckerBuilder
- func NewClientBuilder(host, ns string, incluster, insecure bool) mobile.OSClientBuilder
- func NewUserRepoBuilder(host string, ignoreCerts bool) mobile.UserRepoBuilder
- type AuthChecker
- type AuthCheckerBuilder
- func (acb *AuthCheckerBuilder) Build() mobile.AuthChecker
- func (acb *AuthCheckerBuilder) IgnoreCerts() mobile.AuthCheckerBuilder
- func (acb *AuthCheckerBuilder) WithToken(token string) mobile.AuthCheckerBuilder
- func (acb *AuthCheckerBuilder) WithUserRepo(repo mobile.UserRepo) mobile.AuthCheckerBuilder
- type AuthenticationError
- type ClientBuilder
- func (cb *ClientBuilder) BuildClient() (client.Interface, error)
- func (cb *ClientBuilder) WithHost(host string) mobile.OSClientBuilder
- func (cb *ClientBuilder) WithHostAndNamespace(host, ns string) mobile.OSClientBuilder
- func (cb *ClientBuilder) WithNamespace(ns string) mobile.OSClientBuilder
- func (cb *ClientBuilder) WithToken(token string) mobile.OSClientBuilder
- type UserAccess
- type UserChecker
- type UserRepo
- type UserRepoBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAuthenticationError ¶
func NewAuthCheckerBuilder ¶
func NewAuthCheckerBuilder(host string) mobile.AuthCheckerBuilder
NewAuthCheckerBuilder created and returned with the provided namespace and host
func NewClientBuilder ¶
func NewClientBuilder(host, ns string, incluster, insecure bool) mobile.OSClientBuilder
func NewUserRepoBuilder ¶
func NewUserRepoBuilder(host string, ignoreCerts bool) mobile.UserRepoBuilder
Types ¶
type AuthChecker ¶
AuthChecker checks authorizations against resource in namespaces
func (*AuthChecker) Check ¶
func (ac *AuthChecker) Check(resource, namespace string, client mobile.ExternalHTTPRequester) (bool, error)
Check that the resource in the provided namespace can be written to by the current user
type AuthCheckerBuilder ¶
type AuthCheckerBuilder struct { Host string Token string SkipCertCheck bool UserRepo mobile.UserRepo }
AuthCheckerBuilder for building AuthCheckers
func (*AuthCheckerBuilder) Build ¶
func (acb *AuthCheckerBuilder) Build() mobile.AuthChecker
Build an AuthChecker and return it
func (*AuthCheckerBuilder) IgnoreCerts ¶
func (acb *AuthCheckerBuilder) IgnoreCerts() mobile.AuthCheckerBuilder
IgnoreCerts sets the config to ignore future certificate errors
func (*AuthCheckerBuilder) WithToken ¶
func (acb *AuthCheckerBuilder) WithToken(token string) mobile.AuthCheckerBuilder
WithToken stores the provided for creating future AuthCheckers
func (*AuthCheckerBuilder) WithUserRepo ¶
func (acb *AuthCheckerBuilder) WithUserRepo(repo mobile.UserRepo) mobile.AuthCheckerBuilder
WithUserRepo stores the provided userrrepo for creating future AuthCheckers
type AuthenticationError ¶
func (*AuthenticationError) Code ¶
func (ae *AuthenticationError) Code() int
func (*AuthenticationError) Error ¶
func (ae *AuthenticationError) Error() string
type ClientBuilder ¶
type ClientBuilder struct {
// contains filtered or unexported fields
}
ClientBuilder is a utility to help in the construction of OpenShift clients
func (*ClientBuilder) BuildClient ¶
func (cb *ClientBuilder) BuildClient() (client.Interface, error)
func (*ClientBuilder) WithHost ¶
func (cb *ClientBuilder) WithHost(host string) mobile.OSClientBuilder
func (*ClientBuilder) WithHostAndNamespace ¶
func (cb *ClientBuilder) WithHostAndNamespace(host, ns string) mobile.OSClientBuilder
func (*ClientBuilder) WithNamespace ¶
func (cb *ClientBuilder) WithNamespace(ns string) mobile.OSClientBuilder
func (*ClientBuilder) WithToken ¶
func (cb *ClientBuilder) WithToken(token string) mobile.OSClientBuilder
type UserRepoBuilder ¶
type UserRepoBuilder struct {
// contains filtered or unexported fields
}
func (*UserRepoBuilder) Build ¶
func (urb *UserRepoBuilder) Build() mobile.UserRepo
func (*UserRepoBuilder) WithClient ¶
func (urb *UserRepoBuilder) WithClient(client mobile.UserAccessChecker) mobile.UserRepoBuilder
func (*UserRepoBuilder) WithToken ¶
func (urb *UserRepoBuilder) WithToken(token string) mobile.UserRepoBuilder
Click to show internal directories.
Click to hide internal directories.