Package land.oras
Class Registry.Builder
java.lang.Object
land.oras.Registry.Builder
- Enclosing class:
- Registry
Builder for the registry
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the registrystatic Registry.Builder
builder()
Return a new builderdefaults()
Return a new builder with default authentication using existing host authReturn a new builder with default authentication using existing host auth and registry urlSet username and password authenticationSet username and password authenticationinsecure()
Set insecure communication and no authentificationSet insecure communication and no authentificationReturn a new insecure builder with username and password authenticationwithAuthProvider
(AuthProvider authProvider) Set the auth providerwithInsecure
(boolean insecure) Set the insecure flagwithRegistry
(String registry) Set the registry URLwithSkipTlsVerify
(boolean skipTlsVerify) Set the skip TLS verify flag
-
Method Details
-
defaults
Return a new builder with default authentication using existing host auth- Returns:
- The builder
-
defaults
Return a new builder with default authentication using existing host auth and registry url- Parameters:
registry
- The registry URL (ex: localhost:5000)- Returns:
- The builder
-
defaults
Set username and password authentication- Parameters:
username
- The usernamepassword
- The password- Returns:
- The builder
-
defaults
Set username and password authentication- Parameters:
registry
- The registry URL (ex: localhost:5000)username
- The usernamepassword
- The password- Returns:
- The builder
-
insecure
Set insecure communication and no authentification- Returns:
- The builder
-
insecure
Set insecure communication and no authentification- Parameters:
registry
- The registry (ex: localhost:5000)- Returns:
- The builder
-
insecure
Return a new insecure builder with username and password authentication- Parameters:
registry
- The registry (ex: localhost:5000)username
- The usernamepassword
- The password- Returns:
- The builder
-
withRegistry
Set the registry URL- Parameters:
registry
- The registry URL- Returns:
- The builder
-
withAuthProvider
Set the auth provider- Parameters:
authProvider
- The auth provider- Returns:
- The builder
-
withInsecure
Set the insecure flag- Parameters:
insecure
- Insecure- Returns:
- The builder
-
withSkipTlsVerify
Set the skip TLS verify flag- Parameters:
skipTlsVerify
- Skip TLS verify- Returns:
- The builder
-
builder
Return a new builder- Returns:
- The builder
-
build
Build the registry- Returns:
- The registry
-